Struct google_youtube3::api::Video

source ·
pub struct Video {
Show 18 fields pub age_gating: Option<VideoAgeGating>, pub content_details: Option<VideoContentDetails>, pub etag: Option<String>, pub file_details: Option<VideoFileDetails>, pub id: Option<String>, pub kind: Option<String>, pub live_streaming_details: Option<VideoLiveStreamingDetails>, pub localizations: Option<HashMap<String, VideoLocalization>>, pub monetization_details: Option<VideoMonetizationDetails>, pub player: Option<VideoPlayer>, pub processing_details: Option<VideoProcessingDetails>, pub project_details: Option<VideoProjectDetails>, pub recording_details: Option<VideoRecordingDetails>, pub snippet: Option<VideoSnippet>, pub statistics: Option<VideoStatistics>, pub status: Option<VideoStatus>, pub suggestions: Option<VideoSuggestions>, pub topic_details: Option<VideoTopicDetails>,
}
Expand description

A video resource represents a YouTube 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§

§age_gating: Option<VideoAgeGating>

Age restriction details related to a video. This data can only be retrieved by the video owner.

§content_details: Option<VideoContentDetails>

The contentDetails object contains information about the video content, including the length of the video and its aspect ratio.

§etag: Option<String>

Etag of this resource.

§file_details: Option<VideoFileDetails>

The fileDetails object encapsulates information about the video file that was uploaded to YouTube, including the file’s resolution, duration, audio and video codecs, stream bitrates, and more. This data can only be retrieved by the video owner.

§id: Option<String>

The ID that YouTube uses to uniquely identify the video.

§kind: Option<String>

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

§live_streaming_details: Option<VideoLiveStreamingDetails>

The liveStreamingDetails object contains metadata about a live video broadcast. The object will only be present in a video resource if the video is an upcoming, live, or completed live broadcast.

§localizations: Option<HashMap<String, VideoLocalization>>

The localizations object contains localized versions of the basic details about the video, such as its title and description.

§monetization_details: Option<VideoMonetizationDetails>

The monetizationDetails object encapsulates information about the monetization status of the video.

§player: Option<VideoPlayer>

The player object contains information that you would use to play the video in an embedded player.

§processing_details: Option<VideoProcessingDetails>

The processingDetails object encapsulates information about YouTube’s progress in processing the uploaded video file. The properties in the object identify the current processing status and an estimate of the time remaining until YouTube finishes processing the video. This part also indicates whether different types of data or content, such as file details or thumbnail images, are available for the video. The processingProgress object is designed to be polled so that the video uploaded can track the progress that YouTube has made in processing the uploaded video file. This data can only be retrieved by the video owner.

§project_details: Option<VideoProjectDetails>

The projectDetails object contains information about the project specific video metadata. b/157517979: This part was never populated after it was added. However, it sees non-zero traffic because there is generated client code in the wild that refers to it [1]. We keep this field and do NOT remove it because otherwise V3 would return an error when this part gets requested [2]. [1] https://developers.google.com/resources/api-libraries/documentation/youtube/v3/csharp/latest/classGoogle_1_1Apis_1_1YouTube_1_1v3_1_1Data_1_1VideoProjectDetails.html [2] http://google3/video/youtube/src/python/servers/data_api/common.py?l=1565-1569&rcl=344141677

§recording_details: Option<VideoRecordingDetails>

The recordingDetails object encapsulates information about the location, date and address where the video was recorded.

§snippet: Option<VideoSnippet>

The snippet object contains basic details about the video, such as its title, description, and category.

§statistics: Option<VideoStatistics>

The statistics object contains statistics about the video.

§status: Option<VideoStatus>

The status object contains information about the video’s uploading, processing, and privacy statuses.

§suggestions: Option<VideoSuggestions>

The suggestions object encapsulates suggestions that identify opportunities to improve the video quality or the metadata for the uploaded video. This data can only be retrieved by the video owner.

§topic_details: Option<VideoTopicDetails>

The topicDetails object encapsulates information about Freebase topics associated with the video.

Trait Implementations§

source§

impl Clone for Video

source§

fn clone(&self) -> Video

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Video

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Video

source§

fn default() -> Video

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

impl<'de> Deserialize<'de> for Video

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Video

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ToParts for Video

source§

fn to_parts(&self) -> String

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.

source§

impl RequestValue for Video

source§

impl Resource for Video

source§

impl ResponseResult for Video

Auto Trait Implementations§

§

impl RefUnwindSafe for Video

§

impl Send for Video

§

impl Sync for Video

§

impl Unpin for Video

§

impl UnwindSafe for Video

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,