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 moreSource§impl Debug for Subscription
impl Debug for Subscription
Source§impl Default for Subscription
impl Default for Subscription
Source§fn default() -> Subscription
fn default() -> Subscription
Source§impl<'de> Deserialize<'de> for Subscription
impl<'de> Deserialize<'de> for Subscription
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for Subscription
impl Serialize for Subscription
Source§impl ToParts for Subscription
impl ToParts for Subscription
impl RequestValue for Subscription
impl Resource for Subscription
impl ResponseResult for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more