#[non_exhaustive]pub struct ProviderData {
pub provider: Option<String>,
pub model: Option<String>,
pub data: Value,
}Expand description
Provider-specific data in a message. It has no meaning outside the provider that produced it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.provider: Option<String>Provider that produced the data, if known.
model: Option<String>Model that produced the data, if known.
data: ValueThe data.
Trait Implementations§
Source§impl Clone for ProviderData
impl Clone for ProviderData
Source§impl Debug for ProviderData
impl Debug for ProviderData
Source§impl<'de> Deserialize<'de> for ProviderData
impl<'de> Deserialize<'de> for ProviderData
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 PartialEq for ProviderData
impl PartialEq for ProviderData
Source§impl Serialize for ProviderData
impl Serialize for ProviderData
impl StructuralPartialEq for ProviderData
Auto Trait Implementations§
impl Freeze for ProviderData
impl RefUnwindSafe for ProviderData
impl Send for ProviderData
impl Sync for ProviderData
impl Unpin for ProviderData
impl UnsafeUnpin for ProviderData
impl UnwindSafe for ProviderData
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