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).
- insert subscriptions (request|response)
- list subscriptions (none)
- delete subscriptions (none)
Fields
snippet: Option<SubscriptionSnippet>
The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to.
kind: Option<String>
Identifies what kind of resource this is. Value: the fixed string "youtube#subscription".
etag: Option<String>
Etag of this resource.
content_details: Option<SubscriptionContentDetails>
The contentDetails object contains basic statistics about the subscription.
subscriber_snippet: Option<SubscriptionSubscriberSnippet>
The subscriberSnippet object contains basic details about the sbuscriber.
id: Option<String>
The ID that YouTube uses to uniquely identify the subscription.
Trait Implementations
impl Default for Subscription
[src]
impl Default for Subscription
fn default() -> Subscription
[src]
fn default() -> Subscription
Returns the "default value" for a type. Read more
impl Clone for Subscription
[src]
impl Clone for Subscription
fn clone(&self) -> Subscription
[src]
fn clone(&self) -> Subscription
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Subscription
[src]
impl Debug for Subscription
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl RequestValue for Subscription
[src]
impl RequestValue for Subscription
impl Resource for Subscription
[src]
impl Resource for Subscription
impl ResponseResult for Subscription
[src]
impl ResponseResult for Subscription
impl ToParts for Subscription
[src]
impl ToParts for Subscription
Auto Trait Implementations
impl Send for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Sync for Subscription