Struct google_youtube3::api::Activity[][src]

pub struct Activity {
    pub content_details: Option<ActivityContentDetails>,
    pub etag: Option<String>,
    pub id: Option<String>,
    pub kind: Option<String>,
    pub snippet: Option<ActivitySnippet>,
}
Expand description

An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.

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

Fields

content_details: Option<ActivityContentDetails>

The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object’s content identifies the rated video.

etag: Option<String>

Etag of this resource

id: Option<String>

The ID that YouTube uses to uniquely identify the activity.

kind: Option<String>

Identifies what kind of resource this is. Value: the fixed string “youtube#activity”.

snippet: Option<ActivitySnippet>

The snippet object contains basic details about the activity, including the activity’s type and group ID.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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