Struct twitch_api2::types::EventSubIdRef
source · [−]#[repr(transparent)]pub struct EventSubIdRef(_);
Expand description
A reference to a borrowed EventSubId
Implementations
sourceimpl EventSubIdRef
impl EventSubIdRef
sourcepub fn from_str(raw: &str) -> &Self
pub fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed EventSubIdRef
sourcepub fn into_owned(self: Box<EventSubIdRef>) -> EventSubId
pub fn into_owned(self: Box<EventSubIdRef>) -> EventSubId
Converts a Box<EventSubIdRef>
into a EventSubId
without copying or allocating
Trait Implementations
sourceimpl AsRef<EventSubIdRef> for EventSubId
impl AsRef<EventSubIdRef> for EventSubId
sourcefn as_ref(&self) -> &EventSubIdRef
fn as_ref(&self) -> &EventSubIdRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<str> for EventSubIdRef
impl AsRef<str> for EventSubIdRef
sourceimpl Borrow<EventSubIdRef> for EventSubId
impl Borrow<EventSubIdRef> for EventSubId
sourcefn borrow(&self) -> &EventSubIdRef
fn borrow(&self) -> &EventSubIdRef
Immutably borrows from an owned value. Read more
sourceimpl Borrow<str> for EventSubIdRef
impl Borrow<str> for EventSubIdRef
sourceimpl Debug for EventSubIdRef
impl Debug for EventSubIdRef
sourceimpl<'de: 'a, 'a> Deserialize<'de> for &'a EventSubIdRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a EventSubIdRef
sourcefn 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
sourceimpl Display for EventSubIdRef
impl Display for EventSubIdRef
sourceimpl From<&'_ EventSubIdRef> for EventSubId
impl From<&'_ EventSubIdRef> for EventSubId
sourcefn from(s: &EventSubIdRef) -> Self
fn from(s: &EventSubIdRef) -> Self
Converts to this type from the input type.
sourceimpl<'a, 'b: 'a> From<&'a Cow<'b, EventSubIdRef>> for &'a EventSubIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, EventSubIdRef>> for &'a EventSubIdRef
sourcefn from(r: &'a Cow<'b, EventSubIdRef>) -> &'a EventSubIdRef
fn from(r: &'a Cow<'b, EventSubIdRef>) -> &'a EventSubIdRef
Converts to this type from the input type.
sourceimpl<'a> From<&'a EventSubIdRef> for Cow<'a, EventSubIdRef>
impl<'a> From<&'a EventSubIdRef> for Cow<'a, EventSubIdRef>
sourcefn from(r: &'a EventSubIdRef) -> Self
fn from(r: &'a EventSubIdRef) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a str> for &'a EventSubIdRef
impl<'a> From<&'a str> for &'a EventSubIdRef
sourcefn from(s: &'a str) -> &'a EventSubIdRef
fn from(s: &'a str) -> &'a EventSubIdRef
Converts to this type from the input type.
sourceimpl Hash for EventSubIdRef
impl Hash for EventSubIdRef
sourceimpl PartialEq<&'_ EventSubIdRef> for EventSubId
impl PartialEq<&'_ EventSubIdRef> for EventSubId
sourceimpl PartialEq<&'_ EventSubIdRef> for EventSubIdRef
impl PartialEq<&'_ EventSubIdRef> for EventSubIdRef
sourceimpl PartialEq<&'_ EventSubIdRef> for Box<EventSubIdRef>
impl PartialEq<&'_ EventSubIdRef> for Box<EventSubIdRef>
sourceimpl PartialEq<Box<EventSubIdRef, Global>> for &EventSubIdRef
impl PartialEq<Box<EventSubIdRef, Global>> for &EventSubIdRef
sourceimpl PartialEq<Box<EventSubIdRef, Global>> for EventSubIdRef
impl PartialEq<Box<EventSubIdRef, Global>> for EventSubIdRef
sourceimpl PartialEq<EventSubId> for EventSubIdRef
impl PartialEq<EventSubId> for EventSubIdRef
sourceimpl PartialEq<EventSubId> for &EventSubIdRef
impl PartialEq<EventSubId> for &EventSubIdRef
sourceimpl PartialEq<EventSubIdRef> for EventSubIdRef
impl PartialEq<EventSubIdRef> for EventSubIdRef
sourceimpl PartialEq<EventSubIdRef> for EventSubId
impl PartialEq<EventSubIdRef> for EventSubId
sourceimpl PartialEq<EventSubIdRef> for &EventSubIdRef
impl PartialEq<EventSubIdRef> for &EventSubIdRef
sourceimpl Serialize for EventSubIdRef
impl Serialize for EventSubIdRef
sourceimpl ToOwned for EventSubIdRef
impl ToOwned for EventSubIdRef
type Owned = EventSubId
type Owned = EventSubId
The resulting type after obtaining ownership.
sourcefn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
sourcefn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for EventSubIdRef
Auto Trait Implementations
impl RefUnwindSafe for EventSubIdRef
impl Send for EventSubIdRef
impl !Sized for EventSubIdRef
impl Sync for EventSubIdRef
impl Unpin for EventSubIdRef
impl UnwindSafe for EventSubIdRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.