[][src]Trait activitystreams::link::Link

pub trait Link: Debug + Serialize + Deserialize {
    fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
fn duplicate(&self) -> Box<dyn Link>; }

A Link is an indirect, qualified reference to a resource identified by a URL.

The fundamental model for links is established by [RFC5988]. Many of the properties defined by the Activity Vocabulary allow values that are either instances of Object or Link. When a Link is used, it establishes a qualified relation connecting the subject (the containing object) to the resource identified by the href. Properties of the Link are properties of the reference as opposed to properties of the resource.

Required methods

fn as_any(&self) -> &dyn Any

fn as_any_mut(&mut self) -> &mut dyn Any

fn duplicate(&self) -> Box<dyn Link>

Loading content...

Trait Implementations

impl<'typetag> Serialize for dyn Link + 'typetag[src]

impl<'typetag> Serialize for dyn Link + Send + 'typetag[src]

impl<'typetag> Serialize for dyn Link + Sync + 'typetag[src]

impl<'typetag> Serialize for dyn Link + Send + Sync + 'typetag[src]

impl Strictest for dyn Link[src]

type Object = dyn Link

Implementors

Loading content...