pub struct VideoId(/* private fields */);
Available on crate feature
stream
only.Expand description
A video ID
Implementations§
Source§impl VideoId
impl VideoId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newVideoIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<VideoIdRef>
pub fn into_boxed_ref(self) -> Box<VideoIdRef>
Converts this VideoId
into a Box<VideoIdRef>
This will drop any excess capacity.
Methods from Deref<Target = VideoIdRef>§
Sourcepub fn as_cow(&self) -> Cow<'_, VideoIdRef>
pub fn as_cow(&self) -> Cow<'_, VideoIdRef>
Get a
Cow<'_, VideoIdRef>
Trait Implementations§
Source§impl AsRef<VideoIdRef> for VideoId
impl AsRef<VideoIdRef> for VideoId
Source§fn as_ref(&self) -> &VideoIdRef
fn as_ref(&self) -> &VideoIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<VideoIdRef> for VideoId
impl Borrow<VideoIdRef> for VideoId
Source§fn borrow(&self) -> &VideoIdRef
fn borrow(&self) -> &VideoIdRef
Immutably borrows from an owned value. Read more
Source§impl<'de> Deserialize<'de> for VideoId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for VideoId
Available on crate feature
serde
only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<&'a VideoId> for &'a VideoIdRef
impl<'a> From<&'a VideoId> for &'a VideoIdRef
Source§impl From<&VideoIdRef> for VideoId
impl From<&VideoIdRef> for VideoId
Source§fn from(s: &VideoIdRef) -> Self
fn from(s: &VideoIdRef) -> Self
Converts to this type from the input type.
Source§impl From<Box<VideoIdRef>> for VideoId
impl From<Box<VideoIdRef>> for VideoId
Source§fn from(r: Box<VideoIdRef>) -> Self
fn from(r: Box<VideoIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, VideoIdRef>> for VideoId
impl<'a> From<Cow<'a, VideoIdRef>> for VideoId
Source§fn from(r: Cow<'a, VideoIdRef>) -> Self
fn from(r: Cow<'a, VideoIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoCow<'a, VideoIdRef> for &'a VideoId
impl<'a> IntoCow<'a, VideoIdRef> for &'a VideoId
Source§fn into_cow(self) -> Cow<'a, VideoIdRef>
fn into_cow(self) -> Cow<'a, VideoIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, VideoIdRef> for VideoId
impl<'a> IntoCow<'a, VideoIdRef> for VideoId
Source§fn into_cow(self) -> Cow<'a, VideoIdRef>
fn into_cow(self) -> Cow<'a, VideoIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for VideoId
impl Ord for VideoId
Source§impl PartialEq<&VideoIdRef> for VideoId
impl PartialEq<&VideoIdRef> for VideoId
Source§impl PartialEq<VideoId> for &VideoIdRef
impl PartialEq<VideoId> for &VideoIdRef
Source§impl PartialEq<VideoId> for VideoIdRef
impl PartialEq<VideoId> for VideoIdRef
Source§impl PartialEq<VideoIdRef> for VideoId
impl PartialEq<VideoIdRef> for VideoId
Source§impl PartialOrd for VideoId
impl PartialOrd for VideoId
impl Eq for VideoId
impl StructuralPartialEq for VideoId
Auto Trait Implementations§
impl Freeze for VideoId
impl RefUnwindSafe for VideoId
impl Send for VideoId
impl Sync for VideoId
impl Unpin for VideoId
impl UnwindSafe for VideoId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)