Struct twitch_types::stream::VideoId
source · 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<'a> Arbitrary<'a> for VideoId
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for VideoId
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 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<&VideoId> for VideoId
impl PartialEq<&VideoId> for VideoId
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 VideoId
impl PartialEq for VideoId
source§impl PartialOrd for VideoId
impl PartialOrd for VideoId
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<'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.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