[−][src]Module activitystreams::link
Types and traits for dealing with Link attributes
use activitystreams::{ link::Mention, object::Image, prelude::*, uri, }; let mut mention = Mention::new(); mention .set_href(uri!("https://example.com")) .set_hreflang("en") .set_rel("link") .set_preview(Image::new().into_any_base()?);
Modules
kind | Kinds of links defined by the spec |
Structs
Link | Define all the properties of the Object base type as described by the Activity Streams vocabulary. |
Traits
AsLink | Implementation trait for deriving Link methods for a type |
LinkExt | Helper methods for interacting with Link types |
Type Definitions
Mention | A specialized Link that represents an @mention. |