Struct google_youtube3::api::ResourceId
source · pub struct ResourceId {
pub channel_id: Option<String>,
pub kind: Option<String>,
pub playlist_id: Option<String>,
pub video_id: Option<String>,
}
Expand description
A resource id is a generic reference that points to another YouTube resource.
This type is not used in any activity, and only used as part of another schema.
Fields§
§channel_id: Option<String>
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
kind: Option<String>
The type of the API resource.
playlist_id: Option<String>
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
video_id: Option<String>
The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
Trait Implementations§
source§impl Clone for ResourceId
impl Clone for ResourceId
source§fn clone(&self) -> ResourceId
fn clone(&self) -> ResourceId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResourceId
impl Debug for ResourceId
source§impl Default for ResourceId
impl Default for ResourceId
source§fn default() -> ResourceId
fn default() -> ResourceId
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ResourceId
impl<'de> Deserialize<'de> for ResourceId
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for ResourceId
impl Serialize for ResourceId
impl Part for ResourceId
Auto Trait Implementations§
impl RefUnwindSafe for ResourceId
impl Send for ResourceId
impl Sync for ResourceId
impl Unpin for ResourceId
impl UnwindSafe for ResourceId
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
Mutably borrows from an owned value. Read more