use activitystreams_new::{ context, object::{ApObject, Video}, primitives::{XsdAnyUri, XsdString}, }; fn main() -> Result<(), Box> { let video = Video::builder() .context(context()) .id("https://example.com/@example/lions".parse::()?) .url("https://example.com/@example/lions/video.webm".parse::()?) .summary(XsdString::from("A cool video")) .media_type("video/webm".parse()?) .duration("PT4M20S".parse()?) .build(); let v = ApObject::builder().inner(video).build(); println!("Video, {:#?}", v); let s = serde_json::to_string(&v)?; println!("json, {}", s); let v: ApObject