pub struct ConduitIdRef(/* private fields */);
Available on crate feature
eventsub
only.Expand description
An ID of a Conduit
Implementations§
Source§impl ConduitIdRef
impl ConduitIdRef
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 ConduitIdRef
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 ConduitIdRef
Sourcepub fn into_owned(self: Box<ConduitIdRef>) -> ConduitId
pub fn into_owned(self: Box<ConduitIdRef>) -> ConduitId
Converts a Box<ConduitIdRef>
into a ConduitId
without copying or allocating
Source§impl ConduitIdRef
impl 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 AsRef<str> for ConduitIdRef
impl AsRef<str> for ConduitIdRef
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 Borrow<str> for ConduitIdRef
impl Borrow<str> for ConduitIdRef
Source§impl Debug for ConduitIdRef
impl Debug for ConduitIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a ConduitIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a ConduitIdRef
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<ConduitIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<ConduitIdRef>
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 ConduitIdRef
impl Display for ConduitIdRef
Source§impl<'a> From<&'a &'a ConduitIdRef> for Collection<'a, ConduitId>
impl<'a> From<&'a &'a ConduitIdRef> for Collection<'a, ConduitId>
Source§fn from(v: &'a &'a ConduitIdRef) -> Self
fn from(v: &'a &'a ConduitIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ConduitId> for &'a ConduitIdRef
impl<'a> From<&'a ConduitId> for &'a ConduitIdRef
Source§impl From<&ConduitIdRef> for Arc<ConduitIdRef>
impl From<&ConduitIdRef> for Arc<ConduitIdRef>
Source§fn from(r: &ConduitIdRef) -> Self
fn from(r: &ConduitIdRef) -> Self
Converts to this type from the input type.
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<'a> From<&'a ConduitIdRef> for Cow<'a, ConduitIdRef>
impl<'a> From<&'a ConduitIdRef> for Cow<'a, ConduitIdRef>
Source§fn from(r: &'a ConduitIdRef) -> Self
fn from(r: &'a ConduitIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&ConduitIdRef> for Rc<ConduitIdRef>
impl From<&ConduitIdRef> for Rc<ConduitIdRef>
Source§fn from(r: &ConduitIdRef) -> Self
fn from(r: &ConduitIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, ConduitIdRef>> for &'a ConduitIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, ConduitIdRef>> for &'a ConduitIdRef
Source§fn from(r: &'a Cow<'b, ConduitIdRef>) -> &'a ConduitIdRef
fn from(r: &'a Cow<'b, ConduitIdRef>) -> &'a ConduitIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a ConduitIdRef
impl<'a> From<&'a String> for &'a ConduitIdRef
Source§impl<'a> From<&'a str> for &'a ConduitIdRef
impl<'a> From<&'a str> for &'a ConduitIdRef
Source§fn from(s: &'a str) -> &'a ConduitIdRef
fn from(s: &'a str) -> &'a ConduitIdRef
Converts to this type from the input type.
Source§impl Hash for ConduitIdRef
impl Hash for ConduitIdRef
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 &'a ConduitIdRef
impl<'a> IntoCow<'a, ConduitIdRef> for &'a ConduitIdRef
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 ConduitIdRef
impl Ord for ConduitIdRef
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 PartialEq for ConduitIdRef
impl PartialEq for ConduitIdRef
Source§impl PartialOrd for ConduitIdRef
impl PartialOrd for ConduitIdRef
Source§impl Serialize for ConduitIdRef
Available on crate feature serde
only.
impl Serialize for ConduitIdRef
Available on crate feature
serde
only.