[−][src]Module activitystreams::base
Types and traits for dealing with the base attributes common to all ActivityStreams Objects and Links
use activitystreams::{ context, object::Video, prelude::*, security, uri, }; let mut video = Video::new(); video .set_id(uri!("https://example.com")) .set_context(context()) .add_context(security()) .set_name("Hello"); let any_base = video.into_any_base()?; let mut new_video = Video::new(); new_video.set_preview(any_base);
Structs
AnyBase | A type that can represent Any ActivityStreams type |
Base | A representation of the common fields between Links and Objects in ActivityStreams |
Traits
AsBase | Implementation trait for deriving Base methods for a type |
BaseExt | Helper methods for interacting with Base types |
Extends | Implements conversion between |
ExtendsExt | A helper function implemented for all Extends types to easily produce an AnyBase from a given object. |