pub struct SessionMessageId(/* private fields */);Expand description
Globally unique idempotency key supplied by the sender.
Implementations§
Source§impl SessionMessageId
impl SessionMessageId
pub fn new() -> SessionMessageId
pub fn parse( value: impl Into<String>, ) -> Result<SessionMessageId, SessionMessageValidationError>
pub fn as_str(&self) -> &str
Sourcepub fn stable(namespace: &str, value: &Value) -> SessionMessageId
pub fn stable(namespace: &str, value: &Value) -> SessionMessageId
Stable id for runtime events whose producer already has a durable semantic identity but not a UUID-form message id.
Trait Implementations§
Source§impl Clone for SessionMessageId
impl Clone for SessionMessageId
Source§fn clone(&self) -> SessionMessageId
fn clone(&self) -> SessionMessageId
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 SessionMessageId
impl Debug for SessionMessageId
Source§impl Default for SessionMessageId
impl Default for SessionMessageId
Source§fn default() -> SessionMessageId
fn default() -> SessionMessageId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionMessageId
impl<'de> Deserialize<'de> for SessionMessageId
Source§fn deserialize<D>(
deserializer: D,
) -> Result<SessionMessageId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SessionMessageId, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SessionMessageId
impl Display for SessionMessageId
impl Eq for SessionMessageId
Source§impl Hash for SessionMessageId
impl Hash for SessionMessageId
Source§impl Ord for SessionMessageId
impl Ord for SessionMessageId
Source§fn cmp(&self, other: &SessionMessageId) -> Ordering
fn cmp(&self, other: &SessionMessageId) -> 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 SessionMessageId
impl PartialEq for SessionMessageId
Source§impl PartialOrd for SessionMessageId
impl PartialOrd for SessionMessageId
Source§impl Serialize for SessionMessageId
impl Serialize for SessionMessageId
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 SessionMessageId
Auto Trait Implementations§
impl Freeze for SessionMessageId
impl RefUnwindSafe for SessionMessageId
impl Send for SessionMessageId
impl Sync for SessionMessageId
impl Unpin for SessionMessageId
impl UnsafeUnpin for SessionMessageId
impl UnwindSafe for SessionMessageId
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.