Struct twitch_types::stream::VideoIdRef
source · 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<'a> Arbitrary<'a> for &'a VideoIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a VideoIdRef
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§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§fn eq(&self, other: &&VideoIdRef) -> bool
fn eq(&self, other: &&VideoIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§fn eq(&self, other: &VideoIdRef) -> bool
fn eq(&self, other: &VideoIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for VideoIdRef
impl PartialEq for VideoIdRef
source§fn eq(&self, other: &VideoIdRef) -> bool
fn eq(&self, other: &VideoIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VideoIdRef
impl PartialOrd for VideoIdRef
source§fn partial_cmp(&self, other: &VideoIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &VideoIdRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for VideoIdRef
Available on crate feature serde
only.
impl Serialize for VideoIdRef
Available on crate feature
serde
only.source§impl ToOwned for VideoIdRef
impl ToOwned for VideoIdRef
source§impl<'zf> ZeroFrom<'zf, VideoId> for &'zf VideoIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, VideoId> for &'zf VideoIdRef
Available on crate feature
zerofrom
only.source§impl<'zf> ZeroFrom<'zf, VideoIdRef> for &'zf VideoIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, VideoIdRef> for &'zf VideoIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf VideoIdRef) -> Self
fn zero_from(other: &'zf VideoIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.