pub struct ConversationId(/* private fields */);Expand description
Type-safe wrapper for a conversation ID.
Implementations§
Source§impl ConversationId
impl ConversationId
Sourcepub fn new() -> ConversationId
pub fn new() -> ConversationId
Create a new conversation ID.
Sourcepub fn from_string(s: impl Into<String>) -> ConversationId
pub fn from_string(s: impl Into<String>) -> ConversationId
Create from an existing string.
Trait Implementations§
Source§impl AsRef<str> for ConversationId
impl AsRef<str> for ConversationId
Source§impl Clone for ConversationId
impl Clone for ConversationId
Source§fn clone(&self) -> ConversationId
fn clone(&self) -> ConversationId
Returns a duplicate 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 ConversationId
impl Debug for ConversationId
Source§impl Default for ConversationId
impl Default for ConversationId
Source§fn default() -> ConversationId
fn default() -> ConversationId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConversationId
impl<'de> Deserialize<'de> for ConversationId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConversationId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConversationId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConversationId
impl Display for ConversationId
Source§impl From<&str> for ConversationId
impl From<&str> for ConversationId
Source§fn from(s: &str) -> ConversationId
fn from(s: &str) -> ConversationId
Converts to this type from the input type.
Source§impl From<String> for ConversationId
impl From<String> for ConversationId
Source§fn from(s: String) -> ConversationId
fn from(s: String) -> ConversationId
Converts to this type from the input type.
Source§impl Hash for ConversationId
impl Hash for ConversationId
Source§impl PartialEq for ConversationId
impl PartialEq for ConversationId
Source§impl Serialize for ConversationId
impl Serialize for ConversationId
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 Eq for ConversationId
impl StructuralPartialEq for ConversationId
Auto Trait Implementations§
impl Freeze for ConversationId
impl RefUnwindSafe for ConversationId
impl Send for ConversationId
impl Sync for ConversationId
impl Unpin for ConversationId
impl UnwindSafe for ConversationId
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.