Struct google_youtube3::api::VideoContentDetails
source · pub struct VideoContentDetails {
pub caption: Option<String>,
pub content_rating: Option<ContentRating>,
pub country_restriction: Option<AccessPolicy>,
pub definition: Option<String>,
pub dimension: Option<String>,
pub duration: Option<String>,
pub has_custom_thumbnail: Option<bool>,
pub licensed_content: Option<bool>,
pub projection: Option<String>,
pub region_restriction: Option<VideoContentDetailsRegionRestriction>,
}
Expand description
Details about the content of a YouTube Video.
This type is not used in any activity, and only used as part of another schema.
Fields§
§caption: Option<String>
The value of captions indicates whether the video has captions or not.
content_rating: Option<ContentRating>
Specifies the ratings that the video received under various rating schemes.
country_restriction: Option<AccessPolicy>
The countryRestriction object contains information about the countries where a video is (or is not) viewable.
definition: Option<String>
The value of definition indicates whether the video is available in high definition or only in standard definition.
dimension: Option<String>
The value of dimension indicates whether the video is available in 3D or in 2D.
duration: Option<String>
The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which the letters PT indicate that the value specifies a period of time, and the letters M and S refer to length in minutes and seconds, respectively. The # characters preceding the M and S letters are both integers that specify the number of minutes (or seconds) of the video. For example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long.
has_custom_thumbnail: Option<bool>
Indicates whether the video uploader has provided a custom thumbnail image for the video. This property is only visible to the video uploader.
licensed_content: Option<bool>
The value of is_license_content indicates whether the video is licensed content.
projection: Option<String>
Specifies the projection format of the video.
region_restriction: Option<VideoContentDetailsRegionRestriction>
The regionRestriction object contains information about the countries where a video is (or is not) viewable. The object will contain either the contentDetails.regionRestriction.allowed property or the contentDetails.regionRestriction.blocked property.
Trait Implementations§
source§impl Clone for VideoContentDetails
impl Clone for VideoContentDetails
source§fn clone(&self) -> VideoContentDetails
fn clone(&self) -> VideoContentDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more