Struct google_youtube3::Subscription[][src]

pub struct Subscription {
    pub snippet: Option<SubscriptionSnippet>,
    pub kind: Option<String>,
    pub etag: Option<String>,
    pub content_details: Option<SubscriptionContentDetails>,
    pub subscriber_snippet: Option<SubscriptionSubscriberSnippet>,
    pub id: Option<String>,
}

A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to.

Identifies what kind of resource this is. Value: the fixed string "youtube#subscription".

Etag of this resource.

The contentDetails object contains basic statistics about the subscription.

The subscriberSnippet object contains basic details about the sbuscriber.

The ID that YouTube uses to uniquely identify the subscription.

Trait Implementations

impl Default for Subscription
[src]

Returns the "default value" for a type. Read more

impl Clone for Subscription
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Subscription
[src]

Formats the value using the given formatter. Read more

impl RequestValue for Subscription
[src]

impl Resource for Subscription
[src]

impl ResponseResult for Subscription
[src]

impl ToParts for Subscription
[src]

Return a comma separated list of members that are currently set, i.e. for which self.member.is_some(). The produced string is suitable for use as a parts list that indicates the parts you are sending, and/or the parts you want to see in the server response.

Auto Trait Implementations