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 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§impl PartialEq<EventSubId> for &EventSubIdRef
impl PartialEq<EventSubId> for &EventSubIdRef
Source§impl PartialEq<EventSubId> for EventSubIdRef
impl PartialEq<EventSubId> for EventSubIdRef
Source§impl PartialEq<EventSubIdRef> for EventSubId
impl PartialEq<EventSubIdRef> for EventSubId
Source§impl PartialEq for EventSubIdRef
impl PartialEq for EventSubIdRef
Source§impl PartialOrd for EventSubIdRef
impl PartialOrd for EventSubIdRef
Source§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
Source§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