pub struct ConduitShardIdRef(/* private fields */);
Available on crate feature
eventsub
only.Expand description
An ID of a Conduit Shard
Implementations§
Source§impl ConduitShardIdRef
impl ConduitShardIdRef
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 ConduitShardIdRef
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 ConduitShardIdRef
Sourcepub fn into_owned(self: Box<ConduitShardIdRef>) -> ConduitShardId
pub fn into_owned(self: Box<ConduitShardIdRef>) -> ConduitShardId
Converts a Box<ConduitShardIdRef>
into a ConduitShardId
without copying or allocating
Source§impl ConduitShardIdRef
impl ConduitShardIdRef
Sourcepub fn as_cow(&self) -> Cow<'_, ConduitShardIdRef>
pub fn as_cow(&self) -> Cow<'_, ConduitShardIdRef>
Trait Implementations§
Source§impl AsRef<ConduitShardIdRef> for ConduitShardId
impl AsRef<ConduitShardIdRef> for ConduitShardId
Source§fn as_ref(&self) -> &ConduitShardIdRef
fn as_ref(&self) -> &ConduitShardIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for ConduitShardIdRef
impl AsRef<str> for ConduitShardIdRef
Source§impl Borrow<ConduitShardIdRef> for ConduitShardId
impl Borrow<ConduitShardIdRef> for ConduitShardId
Source§fn borrow(&self) -> &ConduitShardIdRef
fn borrow(&self) -> &ConduitShardIdRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for ConduitShardIdRef
impl Borrow<str> for ConduitShardIdRef
Source§impl Debug for ConduitShardIdRef
impl Debug for ConduitShardIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a ConduitShardIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a ConduitShardIdRef
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<ConduitShardIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<ConduitShardIdRef>
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 ConduitShardIdRef
impl Display for ConduitShardIdRef
Source§impl<'a> From<&'a &'a ConduitShardIdRef> for Collection<'a, ConduitShardId>
impl<'a> From<&'a &'a ConduitShardIdRef> for Collection<'a, ConduitShardId>
Source§fn from(v: &'a &'a ConduitShardIdRef) -> Self
fn from(v: &'a &'a ConduitShardIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ConduitShardId> for &'a ConduitShardIdRef
impl<'a> From<&'a ConduitShardId> for &'a ConduitShardIdRef
Source§fn from(owned: &'a ConduitShardId) -> Self
fn from(owned: &'a ConduitShardId) -> Self
Converts to this type from the input type.
Source§impl From<&ConduitShardIdRef> for Arc<ConduitShardIdRef>
impl From<&ConduitShardIdRef> for Arc<ConduitShardIdRef>
Source§fn from(r: &ConduitShardIdRef) -> Self
fn from(r: &ConduitShardIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&ConduitShardIdRef> for ConduitShardId
impl From<&ConduitShardIdRef> for ConduitShardId
Source§fn from(s: &ConduitShardIdRef) -> Self
fn from(s: &ConduitShardIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ConduitShardIdRef> for Cow<'a, ConduitShardIdRef>
impl<'a> From<&'a ConduitShardIdRef> for Cow<'a, ConduitShardIdRef>
Source§fn from(r: &'a ConduitShardIdRef) -> Self
fn from(r: &'a ConduitShardIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&ConduitShardIdRef> for Rc<ConduitShardIdRef>
impl From<&ConduitShardIdRef> for Rc<ConduitShardIdRef>
Source§fn from(r: &ConduitShardIdRef) -> Self
fn from(r: &ConduitShardIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, ConduitShardIdRef>> for &'a ConduitShardIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, ConduitShardIdRef>> for &'a ConduitShardIdRef
Source§fn from(r: &'a Cow<'b, ConduitShardIdRef>) -> &'a ConduitShardIdRef
fn from(r: &'a Cow<'b, ConduitShardIdRef>) -> &'a ConduitShardIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a ConduitShardIdRef
impl<'a> From<&'a String> for &'a ConduitShardIdRef
Source§impl<'a> From<&'a str> for &'a ConduitShardIdRef
impl<'a> From<&'a str> for &'a ConduitShardIdRef
Source§fn from(s: &'a str) -> &'a ConduitShardIdRef
fn from(s: &'a str) -> &'a ConduitShardIdRef
Converts to this type from the input type.
Source§impl From<ConduitShardId> for Box<ConduitShardIdRef>
impl From<ConduitShardId> for Box<ConduitShardIdRef>
Source§fn from(r: ConduitShardId) -> Self
fn from(r: ConduitShardId) -> Self
Converts to this type from the input type.
Source§impl Hash for ConduitShardIdRef
impl Hash for ConduitShardIdRef
Source§impl<'a> IntoCow<'a, ConduitShardIdRef> for &'a ConduitShardId
impl<'a> IntoCow<'a, ConduitShardIdRef> for &'a ConduitShardId
Source§fn into_cow(self) -> Cow<'a, ConduitShardIdRef>
fn into_cow(self) -> Cow<'a, ConduitShardIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, ConduitShardIdRef> for &'a ConduitShardIdRef
impl<'a> IntoCow<'a, ConduitShardIdRef> for &'a ConduitShardIdRef
Source§fn into_cow(self) -> Cow<'a, ConduitShardIdRef>
fn into_cow(self) -> Cow<'a, ConduitShardIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, ConduitShardIdRef> for ConduitShardId
impl<'a> IntoCow<'a, ConduitShardIdRef> for ConduitShardId
Source§fn into_cow(self) -> Cow<'a, ConduitShardIdRef>
fn into_cow(self) -> Cow<'a, ConduitShardIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for ConduitShardIdRef
impl Ord for ConduitShardIdRef
Source§impl PartialEq<&ConduitShardIdRef> for ConduitShardId
impl PartialEq<&ConduitShardIdRef> for ConduitShardId
Source§impl PartialEq<ConduitShardId> for &ConduitShardIdRef
impl PartialEq<ConduitShardId> for &ConduitShardIdRef
Source§impl PartialEq<ConduitShardId> for ConduitShardIdRef
impl PartialEq<ConduitShardId> for ConduitShardIdRef
Source§impl PartialEq<ConduitShardIdRef> for ConduitShardId
impl PartialEq<ConduitShardIdRef> for ConduitShardId
Source§impl PartialEq for ConduitShardIdRef
impl PartialEq for ConduitShardIdRef
Source§impl PartialOrd for ConduitShardIdRef
impl PartialOrd for ConduitShardIdRef
Source§impl Serialize for ConduitShardIdRef
Available on crate feature serde
only.
impl Serialize for ConduitShardIdRef
Available on crate feature
serde
only.Source§impl ToOwned for ConduitShardIdRef
impl ToOwned for ConduitShardIdRef
Source§type Owned = ConduitShardId
type Owned = ConduitShardId
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