pub struct ConduitShardId(/* private fields */);
Available on crate feature
eventsub
only.Expand description
An ID of a Conduit Shard
Implementations§
Source§impl ConduitShardId
impl ConduitShardId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newConduitShardIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<ConduitShardIdRef>
pub fn into_boxed_ref(self) -> Box<ConduitShardIdRef>
Converts this ConduitShardId
into a Box<ConduitShardIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 ConduitShardId
impl AsRef<str> for ConduitShardId
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 ConduitShardId
impl Borrow<str> for ConduitShardId
Source§impl Clone for ConduitShardId
impl Clone for ConduitShardId
Source§fn clone(&self) -> ConduitShardId
fn clone(&self) -> ConduitShardId
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 ConduitShardId
impl Debug for ConduitShardId
Source§impl Deref for ConduitShardId
impl Deref for ConduitShardId
Source§impl<'de> Deserialize<'de> for ConduitShardId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for ConduitShardId
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 ConduitShardId
impl Display for ConduitShardId
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<'a> From<&'a ConduitShardId> for Collection<'a, ConduitShardId>
impl<'a> From<&'a ConduitShardId> for Collection<'a, ConduitShardId>
Source§fn from(v: &'a ConduitShardId) -> Self
fn from(v: &'a ConduitShardId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ConduitShardId> for Cow<'a, ConduitShardIdRef>
impl<'a> From<&'a ConduitShardId> for Cow<'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 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 From<&str> for ConduitShardId
impl From<&str> for ConduitShardId
Source§impl From<Box<ConduitShardIdRef>> for ConduitShardId
impl From<Box<ConduitShardIdRef>> for ConduitShardId
Source§fn from(r: Box<ConduitShardIdRef>) -> Self
fn from(r: Box<ConduitShardIdRef>) -> Self
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<'a> From<ConduitShardId> for Cow<'a, ConduitShardIdRef>
impl<'a> From<ConduitShardId> for Cow<'a, ConduitShardIdRef>
Source§fn from(owned: ConduitShardId) -> Self
fn from(owned: ConduitShardId) -> Self
Converts to this type from the input type.
Source§impl From<ConduitShardId> for String
impl From<ConduitShardId> for String
Source§fn from(s: ConduitShardId) -> Self
fn from(s: ConduitShardId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, ConduitShardIdRef>> for ConduitShardId
impl<'a> From<Cow<'a, ConduitShardIdRef>> for ConduitShardId
Source§fn from(r: Cow<'a, ConduitShardIdRef>) -> Self
fn from(r: Cow<'a, ConduitShardIdRef>) -> Self
Converts to this type from the input type.
Source§impl From<String> for ConduitShardId
impl From<String> for ConduitShardId
Source§impl FromStr for ConduitShardId
impl FromStr for ConduitShardId
Source§impl Hash for ConduitShardId
impl Hash for ConduitShardId
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 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 ConduitShardId
impl Ord for ConduitShardId
Source§impl PartialEq<&ConduitShardId> for ConduitShardId
impl PartialEq<&ConduitShardId> for ConduitShardId
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 ConduitShardId
impl PartialEq for ConduitShardId
Source§impl PartialOrd for ConduitShardId
impl PartialOrd for ConduitShardId
Source§impl Serialize for ConduitShardId
Available on crate feature serde
only.
impl Serialize for ConduitShardId
Available on crate feature
serde
only.impl Eq for ConduitShardId
impl StructuralPartialEq for ConduitShardId
Auto Trait Implementations§
impl Freeze for ConduitShardId
impl RefUnwindSafe for ConduitShardId
impl Send for ConduitShardId
impl Sync for ConduitShardId
impl Unpin for ConduitShardId
impl UnwindSafe for ConduitShardId
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
)