pub struct ProviderMessageId(pub String);Expand description
Provider-assigned identifier for a message.
Some providers return an opaque ID for each completion response; this type preserves it for tracing and debugging.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for ProviderMessageId
impl Clone for ProviderMessageId
Source§fn clone(&self) -> ProviderMessageId
fn clone(&self) -> ProviderMessageId
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 ProviderMessageId
impl Debug for ProviderMessageId
Source§impl Default for ProviderMessageId
impl Default for ProviderMessageId
Source§fn default() -> ProviderMessageId
fn default() -> ProviderMessageId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderMessageId
impl<'de> Deserialize<'de> for ProviderMessageId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProviderMessageId
impl Display for ProviderMessageId
Source§impl From<&str> for ProviderMessageId
impl From<&str> for ProviderMessageId
Source§impl From<String> for ProviderMessageId
impl From<String> for ProviderMessageId
Source§impl Hash for ProviderMessageId
impl Hash for ProviderMessageId
Source§impl Ord for ProviderMessageId
impl Ord for ProviderMessageId
Source§fn cmp(&self, other: &ProviderMessageId) -> Ordering
fn cmp(&self, other: &ProviderMessageId) -> Ordering
1.21.0 · 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 ProviderMessageId
impl PartialEq for ProviderMessageId
Source§impl PartialOrd for ProviderMessageId
impl PartialOrd for ProviderMessageId
Source§impl Serialize for ProviderMessageId
impl Serialize for ProviderMessageId
impl Eq for ProviderMessageId
impl StructuralPartialEq for ProviderMessageId
Auto Trait Implementations§
impl Freeze for ProviderMessageId
impl RefUnwindSafe for ProviderMessageId
impl Send for ProviderMessageId
impl Sync for ProviderMessageId
impl Unpin for ProviderMessageId
impl UnsafeUnpin for ProviderMessageId
impl UnwindSafe for ProviderMessageId
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