pub struct SharedChatSessionId(/* private fields */);
Available on crate feature
chat
only.Expand description
A Shared Chat Session ID
Implementations§
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newSharedChatSessionIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<SharedChatSessionIdRef>
pub fn into_boxed_ref(self) -> Box<SharedChatSessionIdRef>
Converts this SharedChatSessionId
into a Box<SharedChatSessionIdRef>
This will drop any excess capacity.
Methods from Deref<Target = SharedChatSessionIdRef>§
Trait Implementations§
Source§fn as_ref(&self) -> &SharedChatSessionIdRef
fn as_ref(&self) -> &SharedChatSessionIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§fn borrow(&self) -> &SharedChatSessionIdRef
fn borrow(&self) -> &SharedChatSessionIdRef
Immutably borrows from an owned value. Read more
Source§fn clone(&self) -> SharedChatSessionId
fn clone(&self) -> SharedChatSessionId
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§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§fn from(owned: &'a SharedChatSessionId) -> Self
fn from(owned: &'a SharedChatSessionId) -> Self
Converts to this type from the input type.
Source§fn from(v: &'a SharedChatSessionId) -> Self
fn from(v: &'a SharedChatSessionId) -> Self
Converts to this type from the input type.
Source§fn from(owned: &'a SharedChatSessionId) -> Self
fn from(owned: &'a SharedChatSessionId) -> Self
Converts to this type from the input type.
Source§fn from(s: &SharedChatSessionIdRef) -> Self
fn from(s: &SharedChatSessionIdRef) -> Self
Converts to this type from the input type.
Source§fn from(r: Box<SharedChatSessionIdRef>) -> Self
fn from(r: Box<SharedChatSessionIdRef>) -> Self
Converts to this type from the input type.
Source§fn from(r: Cow<'a, SharedChatSessionIdRef>) -> Self
fn from(r: Cow<'a, SharedChatSessionIdRef>) -> Self
Converts to this type from the input type.
Source§fn from(r: SharedChatSessionId) -> Self
fn from(r: SharedChatSessionId) -> Self
Converts to this type from the input type.
Source§fn from(owned: SharedChatSessionId) -> Self
fn from(owned: SharedChatSessionId) -> Self
Converts to this type from the input type.
Source§fn from(s: SharedChatSessionId) -> Self
fn from(s: SharedChatSessionId) -> Self
Converts to this type from the input type.
Source§fn into_cow(self) -> Cow<'a, SharedChatSessionIdRef>
fn into_cow(self) -> Cow<'a, SharedChatSessionIdRef>
Make the cow with proper ownership, muu
Source§fn into_cow(self) -> Cow<'a, SharedChatSessionIdRef>
fn into_cow(self) -> Cow<'a, SharedChatSessionIdRef>
Make the cow with proper ownership, muu
Auto Trait Implementations§
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