Struct google_youtube3::api::Subscription
source · pub struct Subscription {
pub content_details: Option<SubscriptionContentDetails>,
pub etag: Option<String>,
pub id: Option<String>,
pub kind: Option<String>,
pub snippet: Option<SubscriptionSnippet>,
pub subscriber_snippet: Option<SubscriptionSubscriberSnippet>,
}
Expand description
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).
- delete subscriptions (none)
- insert subscriptions (request|response)
- list subscriptions (none)
Fields§
§content_details: Option<SubscriptionContentDetails>
The contentDetails object contains basic statistics about the subscription.
etag: Option<String>
Etag of this resource.
id: Option<String>
The ID that YouTube uses to uniquely identify the subscription.
kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string “youtube#subscription”.
snippet: Option<SubscriptionSnippet>
The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to.
subscriber_snippet: Option<SubscriptionSubscriberSnippet>
The subscriberSnippet object contains basic details about the subscriber.
Trait Implementations§
source§impl Clone for Subscription
impl Clone for Subscription
source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more