pub struct VideoIdRef(/* private fields */);
Available on crate feature
stream
only.Expand description
A video ID
Implementations§
Source§impl VideoIdRef
impl VideoIdRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed VideoIdRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed VideoIdRef
Sourcepub fn into_owned(self: Box<VideoIdRef>) -> VideoId
pub fn into_owned(self: Box<VideoIdRef>) -> VideoId
Converts a Box<VideoIdRef>
into a VideoId
without copying or allocating
Source§impl VideoIdRef
impl 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 AsRef<str> for VideoIdRef
impl AsRef<str> for VideoIdRef
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 Borrow<str> for VideoIdRef
impl Borrow<str> for VideoIdRef
Source§impl Debug for VideoIdRef
impl Debug for VideoIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a VideoIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a VideoIdRef
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<'de> Deserialize<'de> for Box<VideoIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<VideoIdRef>
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 Display for VideoIdRef
impl Display for VideoIdRef
Source§impl<'a> From<&'a &'a VideoIdRef> for Collection<'a, VideoId>
impl<'a> From<&'a &'a VideoIdRef> for Collection<'a, VideoId>
Source§fn from(v: &'a &'a VideoIdRef) -> Self
fn from(v: &'a &'a VideoIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, VideoIdRef>> for &'a VideoIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, VideoIdRef>> for &'a VideoIdRef
Source§fn from(r: &'a Cow<'b, VideoIdRef>) -> &'a VideoIdRef
fn from(r: &'a Cow<'b, VideoIdRef>) -> &'a VideoIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a VideoIdRef
impl<'a> From<&'a String> for &'a VideoIdRef
Source§impl<'a> From<&'a VideoId> for &'a VideoIdRef
impl<'a> From<&'a VideoId> for &'a VideoIdRef
Source§impl From<&VideoIdRef> for Arc<VideoIdRef>
impl From<&VideoIdRef> for Arc<VideoIdRef>
Source§fn from(r: &VideoIdRef) -> Self
fn from(r: &VideoIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a VideoIdRef> for Cow<'a, VideoIdRef>
impl<'a> From<&'a VideoIdRef> for Cow<'a, VideoIdRef>
Source§fn from(r: &'a VideoIdRef) -> Self
fn from(r: &'a VideoIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&VideoIdRef> for Rc<VideoIdRef>
impl From<&VideoIdRef> for Rc<VideoIdRef>
Source§fn from(r: &VideoIdRef) -> Self
fn from(r: &VideoIdRef) -> Self
Converts to this type from the input type.
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<'a> From<&'a str> for &'a VideoIdRef
impl<'a> From<&'a str> for &'a VideoIdRef
Source§fn from(s: &'a str) -> &'a VideoIdRef
fn from(s: &'a str) -> &'a VideoIdRef
Converts to this type from the input type.
Source§impl Hash for VideoIdRef
impl Hash for VideoIdRef
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 &'a VideoIdRef
impl<'a> IntoCow<'a, VideoIdRef> for &'a VideoIdRef
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 VideoIdRef
impl Ord for VideoIdRef
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 PartialEq for VideoIdRef
impl PartialEq for VideoIdRef
Source§impl PartialOrd for VideoIdRef
impl PartialOrd for VideoIdRef
Source§impl Serialize for VideoIdRef
Available on crate feature serde
only.
impl Serialize for VideoIdRef
Available on crate feature
serde
only.