pub struct MessageKey(/* private fields */);Implementations§
Source§impl MessageKey
impl MessageKey
pub fn new(value: impl Into<String>) -> Result<MessageKey, AtmError>
pub fn into_inner(self) -> String
pub fn as_str(&self) -> &str
pub fn as_atm_message_id(&self) -> Result<AtmMessageId, AtmError>
Trait Implementations§
Source§impl AsRef<str> for MessageKey
impl AsRef<str> for MessageKey
Source§impl Clone for MessageKey
impl Clone for MessageKey
Source§fn clone(&self) -> MessageKey
fn clone(&self) -> MessageKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageKey
impl Debug for MessageKey
Source§impl<'de> Deserialize<'de> for MessageKey
impl<'de> Deserialize<'de> for MessageKey
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for MessageKey
impl Display for MessageKey
impl Eq for MessageKey
Source§impl From<AtmMessageId> for MessageKey
impl From<AtmMessageId> for MessageKey
Source§fn from(value: AtmMessageId) -> MessageKey
fn from(value: AtmMessageId) -> MessageKey
Converts to this type from the input type.
Source§impl FromStr for MessageKey
impl FromStr for MessageKey
Source§impl Hash for MessageKey
impl Hash for MessageKey
Source§impl Ord for MessageKey
impl Ord for MessageKey
Source§fn cmp(&self, other: &MessageKey) -> Ordering
fn cmp(&self, other: &MessageKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MessageKey
impl PartialEq for MessageKey
Source§impl PartialOrd for MessageKey
impl PartialOrd for MessageKey
Source§impl Serialize for MessageKey
impl Serialize for MessageKey
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MessageKey
Auto Trait Implementations§
impl Freeze for MessageKey
impl RefUnwindSafe for MessageKey
impl Send for MessageKey
impl Sync for MessageKey
impl Unpin for MessageKey
impl UnsafeUnpin for MessageKey
impl UnwindSafe for MessageKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.