pub struct ActivityContentDetails {
    pub bulletin: Option<ActivityContentDetailsBulletin>,
    pub channel_item: Option<ActivityContentDetailsChannelItem>,
    pub comment: Option<ActivityContentDetailsComment>,
    pub favorite: Option<ActivityContentDetailsFavorite>,
    pub like: Option<ActivityContentDetailsLike>,
    pub playlist_item: Option<ActivityContentDetailsPlaylistItem>,
    pub promoted_item: Option<ActivityContentDetailsPromotedItem>,
    pub recommendation: Option<ActivityContentDetailsRecommendation>,
    pub social: Option<ActivityContentDetailsSocial>,
    pub subscription: Option<ActivityContentDetailsSubscription>,
    pub upload: Option<ActivityContentDetailsUpload>,
}
Expand description

Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc.

This type is not used in any activity, and only used as part of another schema.

Fields§

§bulletin: Option<ActivityContentDetailsBulletin>

The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin.

§channel_item: Option<ActivityContentDetailsChannelItem>

The channelItem object contains details about a resource which was added to a channel. This property is only present if the snippet.type is channelItem.

§comment: Option<ActivityContentDetailsComment>

The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment.

§favorite: Option<ActivityContentDetailsFavorite>

The favorite object contains information about a video that was marked as a favorite video. This property is only present if the snippet.type is favorite.

§like: Option<ActivityContentDetailsLike>

The like object contains information about a resource that received a positive (like) rating. This property is only present if the snippet.type is like.

§playlist_item: Option<ActivityContentDetailsPlaylistItem>

The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem.

§promoted_item: Option<ActivityContentDetailsPromotedItem>

The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem.

§recommendation: Option<ActivityContentDetailsRecommendation>

The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation.

§social: Option<ActivityContentDetailsSocial>

The social object contains details about a social network post. This property is only present if the snippet.type is social.

§subscription: Option<ActivityContentDetailsSubscription>

The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription.

§upload: Option<ActivityContentDetailsUpload>

The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload.

Trait Implementations§

source§

impl Clone for ActivityContentDetails

source§

fn clone(&self) -> ActivityContentDetails

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ActivityContentDetails

source§

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

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

impl Default for ActivityContentDetails

source§

fn default() -> ActivityContentDetails

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

impl<'de> Deserialize<'de> for ActivityContentDetails

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 Serialize for ActivityContentDetails

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 Part for ActivityContentDetails

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> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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