Struct ActivityStreamArticle

Source
pub struct ActivityStreamArticle { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl ActivityStreamEntityProperties for ActivityStreamArticle

Source§

impl ActivityStreamObjectProperties for ActivityStreamArticle

Source§

fn get_id(&self) -> &Option<Url>

Source§

fn set_id<T: MaybeOptional<Url>>(&mut self, id: T)

Source§

fn register_context<T>(&mut self, new_context: T)

Source§

fn get_attachments(&self) -> &Option<Vec<ActivityStreamEntity>>

Source§

fn set_attachments<S, T: MaybeOptional<Vec<S>>>(&mut self, attachment: T)

Source§

fn add_attachment<S, T: MaybeOptional<S>>(&mut self, attachment: T)

Source§

fn get_attributed_to(&self) -> &Option<Vec<ActivityStreamEntity>>

Source§

fn set_attributed_to<S, T: MaybeOptional<Vec<S>>>(&mut self, attributed_to: T)

Source§

fn add_attributed_to<S, T: MaybeOptional<S>>(&mut self, attributed_to: T)

Source§

fn get_audience(&self) -> &Option<BoxedActivityStreamEntity>

Source§

fn set_audience<S, T: MaybeOptional<S>>(&mut self, audience: T)

Source§

fn get_content(&self) -> &Option<ActivityStreamMultilangString>

Source§

fn set_content<S, T: MaybeOptional<S>>(&mut self, content: T)

Source§

fn get_end_time(&self) -> &Option<DateTime<FixedOffset>>

Source§

fn set_end_time<T: MaybeOptional<DateTime<FixedOffset>>>(&mut self, end_time: T)

Source§

fn get_generator(&self) -> &Option<BoxedActivityStreamEntity>

Source§

fn set_generator<S, T: MaybeOptional<S>>(&mut self, generator: T)

Source§

fn get_icon(&self) -> &Option<ActivityStreamLinkableImage>

Source§

fn set_icon<S, T: MaybeOptional<S>>(&mut self, icon: T)

Source§

fn get_image(&self) -> &Option<ActivityStreamLinkableImage>

Source§

fn set_image<S, T: MaybeOptional<S>>(&mut self, image: T)

Source§

fn get_in_reply_to(&self) -> &Option<BoxedActivityStreamEntity>

Source§

fn set_in_reply_to<S, T: MaybeOptional<S>>(&mut self, in_reply_to: T)

Source§

fn get_location(&self) -> &Option<BoxedActivityStreamEntity>

Source§

fn set_location<S, T: MaybeOptional<S>>(&mut self, location: T)

Source§

fn get_preview(&self) -> &Option<BoxedActivityStreamEntity>

Source§

fn set_preview<S, T: MaybeOptional<S>>(&mut self, preview: T)

Source§

fn get_published(&self) -> &Option<DateTime<FixedOffset>>

Source§

fn set_published<T: MaybeOptional<DateTime<FixedOffset>>>( &mut self, published: T, )

Source§

fn get_replies(&self) -> &Option<Box<ActivityStreamCollection>>

Source§

fn set_replies<T: MaybeOptional<ActivityStreamCollection>>( &mut self, replies: T, )

Source§

fn get_start_time(&self) -> &Option<DateTime<FixedOffset>>

Source§

fn set_start_time<T: MaybeOptional<DateTime<FixedOffset>>>( &mut self, start_time: T, )

Source§

fn get_summary(&self) -> &Option<ActivityStreamMultilangString>

Source§

fn set_summary<S, T: MaybeOptional<S>>(&mut self, summary: T)

Source§

fn get_tags(&self) -> &Option<Vec<ActivityStreamEntity>>

Source§

fn set_tags<S, T: MaybeOptional<Vec<S>>>(&mut self, attachment: T)

Source§

fn add_tag<S, T: MaybeOptional<S>>(&mut self, attachment: T)

Source§

fn get_updated(&self) -> &Option<DateTime<FixedOffset>>

Source§

fn set_updated<T: MaybeOptional<DateTime<FixedOffset>>>(&mut self, updated: T)

Source§

fn get_url(&self) -> &Option<ActivityStreamLinkableUrl>

Source§

fn set_url<S, T: MaybeOptional<S>>(&mut self, url: T)

Source§

fn get_to(&self) -> &Option<BoxedActivityStreamEntity>

Source§

fn set_to<S, T: MaybeOptional<S>>(&mut self, to: T)

Source§

fn get_bto(&self) -> &Option<BoxedActivityStreamEntity>

Source§

fn set_bto<S, T: MaybeOptional<S>>(&mut self, to: T)

Source§

fn get_cc(&self) -> &Option<BoxedActivityStreamEntity>

Source§

fn set_cc<S, T: MaybeOptional<S>>(&mut self, cc: T)

Source§

fn get_bcc(&self) -> &Option<Vec<ActivityStreamEntity>>

Source§

fn set_bcc<S, T: MaybeOptional<Vec<S>>>(&mut self, attachment: T)

Source§

fn add_bcc<S, T: MaybeOptional<S>>(&mut self, attachment: T)

Source§

fn get_media_type(&self) -> &Option<String>

Source§

fn set_media_type<T: MaybeOptional<String>>(&mut self, media_type: T)

Source§

fn get_duration(&self) -> &Option<String>

Source§

fn set_duration<T: MaybeOptional<String>>(&mut self, duration: T)

Source§

impl Debug for ActivityStreamArticle

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ActivityStreamArticle

Source§

fn default() -> ActivityStreamArticle

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ActivityStreamArticle

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl DeserializeType for ActivityStreamArticle

Source§

impl PartialEq for ActivityStreamArticle

Source§

fn eq(&self, other: &ActivityStreamArticle) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ActivityStreamArticle

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ActivityStreamArticle

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeOptional<T> for T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,