pub struct ConduitId(/* private fields */);
Available on crate feature
eventsub
only.Expand description
An ID of a Conduit
Implementations§
Source§impl ConduitId
impl ConduitId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newConduitIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<ConduitIdRef>
pub fn into_boxed_ref(self) -> Box<ConduitIdRef>
Converts this ConduitId
into a Box<ConduitIdRef>
This will drop any excess capacity.
Methods from Deref<Target = ConduitIdRef>§
Sourcepub fn as_cow(&self) -> Cow<'_, ConduitIdRef>
pub fn as_cow(&self) -> Cow<'_, ConduitIdRef>
Get a
Cow<'_, ConduitIdRef>
Trait Implementations§
Source§impl AsRef<ConduitIdRef> for ConduitId
impl AsRef<ConduitIdRef> for ConduitId
Source§fn as_ref(&self) -> &ConduitIdRef
fn as_ref(&self) -> &ConduitIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<ConduitIdRef> for ConduitId
impl Borrow<ConduitIdRef> for ConduitId
Source§fn borrow(&self) -> &ConduitIdRef
fn borrow(&self) -> &ConduitIdRef
Immutably borrows from an owned value. Read more
Source§impl<'de> Deserialize<'de> for ConduitId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for ConduitId
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 ConduitId> for &'a ConduitIdRef
impl<'a> From<&'a ConduitId> for &'a ConduitIdRef
Source§impl From<&ConduitIdRef> for ConduitId
impl From<&ConduitIdRef> for ConduitId
Source§fn from(s: &ConduitIdRef) -> Self
fn from(s: &ConduitIdRef) -> Self
Converts to this type from the input type.
Source§impl From<Box<ConduitIdRef>> for ConduitId
impl From<Box<ConduitIdRef>> for ConduitId
Source§fn from(r: Box<ConduitIdRef>) -> Self
fn from(r: Box<ConduitIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, ConduitIdRef>> for ConduitId
impl<'a> From<Cow<'a, ConduitIdRef>> for ConduitId
Source§fn from(r: Cow<'a, ConduitIdRef>) -> Self
fn from(r: Cow<'a, ConduitIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoCow<'a, ConduitIdRef> for &'a ConduitId
impl<'a> IntoCow<'a, ConduitIdRef> for &'a ConduitId
Source§fn into_cow(self) -> Cow<'a, ConduitIdRef>
fn into_cow(self) -> Cow<'a, ConduitIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, ConduitIdRef> for ConduitId
impl<'a> IntoCow<'a, ConduitIdRef> for ConduitId
Source§fn into_cow(self) -> Cow<'a, ConduitIdRef>
fn into_cow(self) -> Cow<'a, ConduitIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for ConduitId
impl Ord for ConduitId
Source§impl PartialEq<&ConduitIdRef> for ConduitId
impl PartialEq<&ConduitIdRef> for ConduitId
Source§impl PartialEq<ConduitId> for &ConduitIdRef
impl PartialEq<ConduitId> for &ConduitIdRef
Source§impl PartialEq<ConduitId> for ConduitIdRef
impl PartialEq<ConduitId> for ConduitIdRef
Source§impl PartialEq<ConduitIdRef> for ConduitId
impl PartialEq<ConduitIdRef> for ConduitId
Source§impl PartialOrd for ConduitId
impl PartialOrd for ConduitId
impl Eq for ConduitId
impl StructuralPartialEq for ConduitId
Auto Trait Implementations§
impl Freeze for ConduitId
impl RefUnwindSafe for ConduitId
impl Send for ConduitId
impl Sync for ConduitId
impl Unpin for ConduitId
impl UnwindSafe for ConduitId
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
)