pub struct SharedChatSessionIdRef(/* private fields */);
Available on crate feature
chat
only.Expand description
A Shared Chat Session ID
Implementations§
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed SharedChatSessionIdRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed SharedChatSessionIdRef
Sourcepub fn into_owned(self: Box<SharedChatSessionIdRef>) -> SharedChatSessionId
pub fn into_owned(self: Box<SharedChatSessionIdRef>) -> SharedChatSessionId
Converts a Box<SharedChatSessionIdRef>
into a SharedChatSessionId
without copying or allocating
Sourcepub fn as_cow(&self) -> Cow<'_, SharedChatSessionIdRef>
pub fn as_cow(&self) -> Cow<'_, 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 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 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(v: &'a &'a SharedChatSessionIdRef) -> Self
fn from(v: &'a &'a SharedChatSessionIdRef) -> Self
Converts to this type from the input type.
Source§fn from(r: &'a Cow<'b, SharedChatSessionIdRef>) -> &'a SharedChatSessionIdRef
fn from(r: &'a Cow<'b, SharedChatSessionIdRef>) -> &'a SharedChatSessionIdRef
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(r: &SharedChatSessionIdRef) -> Self
fn from(r: &SharedChatSessionIdRef) -> Self
Converts to this type from the input type.
Source§fn from(r: &'a SharedChatSessionIdRef) -> Self
fn from(r: &'a SharedChatSessionIdRef) -> Self
Converts to this type from the input type.
Source§fn from(r: &SharedChatSessionIdRef) -> Self
fn from(r: &SharedChatSessionIdRef) -> 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(s: &'a str) -> &'a SharedChatSessionIdRef
fn from(s: &'a str) -> &'a SharedChatSessionIdRef
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 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
Source§fn into_cow(self) -> Cow<'a, SharedChatSessionIdRef>
fn into_cow(self) -> Cow<'a, SharedChatSessionIdRef>
Make the cow with proper ownership, muu
Source§type Owned = SharedChatSessionId
type Owned = SharedChatSessionId
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more