pub struct EventSubId(/* private fields */);
Available on crate feature
eventsub
only.Expand description
An EventSub Subscription ID
Implementations§
Source§impl EventSubId
impl EventSubId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newEventSubIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<EventSubIdRef>
pub fn into_boxed_ref(self) -> Box<EventSubIdRef>
Converts this EventSubId
into a Box<EventSubIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 EventSubId
impl AsRef<str> for EventSubId
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 EventSubId
impl Borrow<str> for EventSubId
Source§impl Clone for EventSubId
impl Clone for EventSubId
Source§fn clone(&self) -> EventSubId
fn clone(&self) -> EventSubId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EventSubId
impl Debug for EventSubId
Source§impl Deref for EventSubId
impl Deref for EventSubId
Source§impl<'de> Deserialize<'de> for EventSubId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for EventSubId
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 EventSubId
impl Display for EventSubId
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<'a> From<&'a EventSubId> for Collection<'a, EventSubId>
impl<'a> From<&'a EventSubId> for Collection<'a, EventSubId>
Source§fn from(v: &'a EventSubId) -> Self
fn from(v: &'a EventSubId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a EventSubId> for Cow<'a, EventSubIdRef>
impl<'a> From<&'a EventSubId> for Cow<'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 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<&str> for EventSubId
impl From<&str> for EventSubId
Source§impl From<Box<EventSubIdRef>> for EventSubId
impl From<Box<EventSubIdRef>> for EventSubId
Source§fn from(r: Box<EventSubIdRef>) -> Self
fn from(r: Box<EventSubIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, EventSubIdRef>> for EventSubId
impl<'a> From<Cow<'a, EventSubIdRef>> for EventSubId
Source§fn from(r: Cow<'a, EventSubIdRef>) -> Self
fn from(r: Cow<'a, EventSubIdRef>) -> Self
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<'a> From<EventSubId> for Cow<'a, EventSubIdRef>
impl<'a> From<EventSubId> for Cow<'a, EventSubIdRef>
Source§fn from(owned: EventSubId) -> Self
fn from(owned: EventSubId) -> Self
Converts to this type from the input type.
Source§impl From<EventSubId> for String
impl From<EventSubId> for String
Source§fn from(s: EventSubId) -> Self
fn from(s: EventSubId) -> Self
Converts to this type from the input type.
Source§impl From<String> for EventSubId
impl From<String> for EventSubId
Source§impl FromStr for EventSubId
impl FromStr for EventSubId
Source§impl Hash for EventSubId
impl Hash for EventSubId
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 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 EventSubId
impl Ord for EventSubId
Source§impl PartialEq<&EventSubId> for EventSubId
impl PartialEq<&EventSubId> for EventSubId
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 EventSubId
impl PartialEq for EventSubId
Source§impl PartialOrd for EventSubId
impl PartialOrd for EventSubId
Source§impl Serialize for EventSubId
Available on crate feature serde
only.
impl Serialize for EventSubId
Available on crate feature
serde
only.impl Eq for EventSubId
impl StructuralPartialEq for EventSubId
Auto Trait Implementations§
impl Freeze for EventSubId
impl RefUnwindSafe for EventSubId
impl Send for EventSubId
impl Sync for EventSubId
impl Unpin for EventSubId
impl UnwindSafe for EventSubId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)