Struct twitch_types::eventsub::EventSubIdRef
source · pub struct EventSubIdRef(/* private fields */);
Available on crate feature
eventsub
only.Expand description
An EventSub Subscription ID
Implementations§
source§impl EventSubIdRef
impl EventSubIdRef
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 EventSubIdRef
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 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
source§impl EventSubIdRef
impl EventSubIdRef
sourcepub fn as_cow(&self) -> Cow<'_, EventSubIdRef>
pub fn as_cow(&self) -> Cow<'_, EventSubIdRef>
Get a
Cow<'_, EventSubIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for &'a EventSubIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a EventSubIdRef
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<EventSubIdRef> for EventSubId
impl AsRef<EventSubIdRef> for EventSubId
source§fn as_ref(&self) -> &EventSubIdRef
fn as_ref(&self) -> &EventSubIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for EventSubIdRef
impl AsRef<str> for EventSubIdRef
source§impl Borrow<EventSubIdRef> for EventSubId
impl Borrow<EventSubIdRef> for EventSubId
source§fn borrow(&self) -> &EventSubIdRef
fn borrow(&self) -> &EventSubIdRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for EventSubIdRef
impl Borrow<str> for EventSubIdRef
source§impl Debug for EventSubIdRef
impl Debug for EventSubIdRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a EventSubIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a EventSubIdRef
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<EventSubIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<EventSubIdRef>
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 EventSubIdRef
impl Display for EventSubIdRef
source§impl<'a> From<&'a &'a EventSubIdRef> for Collection<'a, EventSubId>
impl<'a> From<&'a &'a EventSubIdRef> for Collection<'a, EventSubId>
source§fn from(v: &'a &'a EventSubIdRef) -> Self
fn from(v: &'a &'a EventSubIdRef) -> Self
Converts to this type from the input type.
source§impl<'a, 'b: 'a> From<&'a Cow<'b, EventSubIdRef>> for &'a EventSubIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, EventSubIdRef>> for &'a EventSubIdRef
source§fn 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.
source§impl<'a> From<&'a EventSubId> for &'a EventSubIdRef
impl<'a> From<&'a EventSubId> for &'a EventSubIdRef
source§fn from(owned: &'a EventSubId) -> Self
fn from(owned: &'a EventSubId) -> Self
Converts to this type from the input type.
source§impl From<&EventSubIdRef> for Arc<EventSubIdRef>
impl From<&EventSubIdRef> for Arc<EventSubIdRef>
source§fn from(r: &EventSubIdRef) -> Self
fn from(r: &EventSubIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a EventSubIdRef> for Cow<'a, EventSubIdRef>
impl<'a> From<&'a EventSubIdRef> for Cow<'a, EventSubIdRef>
source§fn from(r: &'a EventSubIdRef) -> Self
fn from(r: &'a EventSubIdRef) -> Self
Converts to this type from the input type.
source§impl From<&EventSubIdRef> for EventSubId
impl From<&EventSubIdRef> for EventSubId
source§fn from(s: &EventSubIdRef) -> Self
fn from(s: &EventSubIdRef) -> Self
Converts to this type from the input type.
source§impl From<&EventSubIdRef> for Rc<EventSubIdRef>
impl From<&EventSubIdRef> for Rc<EventSubIdRef>
source§fn from(r: &EventSubIdRef) -> Self
fn from(r: &EventSubIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a String> for &'a EventSubIdRef
impl<'a> From<&'a String> for &'a EventSubIdRef
source§impl<'a> From<&'a str> for &'a EventSubIdRef
impl<'a> From<&'a str> for &'a EventSubIdRef
source§fn from(s: &'a str) -> &'a EventSubIdRef
fn from(s: &'a str) -> &'a EventSubIdRef
Converts to this type from the input type.
source§impl From<EventSubId> for Box<EventSubIdRef>
impl From<EventSubId> for Box<EventSubIdRef>
source§fn from(r: EventSubId) -> Self
fn from(r: EventSubId) -> Self
Converts to this type from the input type.
source§impl Hash for EventSubIdRef
impl Hash for EventSubIdRef
source§impl<'a> IntoCow<'a, EventSubIdRef> for &'a EventSubId
impl<'a> IntoCow<'a, EventSubIdRef> for &'a EventSubId
source§fn into_cow(self) -> Cow<'a, EventSubIdRef>
fn into_cow(self) -> Cow<'a, EventSubIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, EventSubIdRef> for &'a EventSubIdRef
impl<'a> IntoCow<'a, EventSubIdRef> for &'a EventSubIdRef
source§fn into_cow(self) -> Cow<'a, EventSubIdRef>
fn into_cow(self) -> Cow<'a, EventSubIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, EventSubIdRef> for EventSubId
impl<'a> IntoCow<'a, EventSubIdRef> for EventSubId
source§fn into_cow(self) -> Cow<'a, EventSubIdRef>
fn into_cow(self) -> Cow<'a, EventSubIdRef>
Make the cow with proper ownership, muu
source§impl Ord for EventSubIdRef
impl Ord for EventSubIdRef
source§impl PartialEq<&EventSubIdRef> for EventSubId
impl PartialEq<&EventSubIdRef> for EventSubId
source§fn eq(&self, other: &&EventSubIdRef) -> bool
fn eq(&self, other: &&EventSubIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<EventSubId> for &EventSubIdRef
impl PartialEq<EventSubId> for &EventSubIdRef
source§fn eq(&self, other: &EventSubId) -> bool
fn eq(&self, other: &EventSubId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<EventSubId> for EventSubIdRef
impl PartialEq<EventSubId> for EventSubIdRef
source§fn eq(&self, other: &EventSubId) -> bool
fn eq(&self, other: &EventSubId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<EventSubIdRef> for EventSubId
impl PartialEq<EventSubIdRef> for EventSubId
source§fn eq(&self, other: &EventSubIdRef) -> bool
fn eq(&self, other: &EventSubIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for EventSubIdRef
impl PartialEq for EventSubIdRef
source§fn eq(&self, other: &EventSubIdRef) -> bool
fn eq(&self, other: &EventSubIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EventSubIdRef
impl PartialOrd for EventSubIdRef
source§fn partial_cmp(&self, other: &EventSubIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &EventSubIdRef) -> 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 EventSubIdRef
Available on crate feature serde
only.
impl Serialize for EventSubIdRef
Available on crate feature
serde
only.source§impl ToOwned for EventSubIdRef
impl ToOwned for EventSubIdRef
§type Owned = EventSubId
type Owned = EventSubId
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
source§impl<'zf> ZeroFrom<'zf, EventSubId> for &'zf EventSubIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, EventSubId> for &'zf EventSubIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf EventSubId) -> Self
fn zero_from(other: &'zf EventSubId) -> Self
Clone the other
C
into a struct that may retain references into C
.source§impl<'zf> ZeroFrom<'zf, EventSubIdRef> for &'zf EventSubIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, EventSubIdRef> for &'zf EventSubIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf EventSubIdRef) -> Self
fn zero_from(other: &'zf EventSubIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.