#[non_exhaustive]pub struct OperationExample {
pub message: String,
pub arguments: Map<String, Value>,
pub not_given: Vec<String>,
}Expand description
A message and what it means for one operation, shown to the model as an example.
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.message: StringWhat a user wrote.
arguments: Map<String, Value>The arguments it gives, by name.
not_given: Vec<String>The arguments it names or implies without giving a value.
Trait Implementations§
Source§impl Clone for OperationExample
impl Clone for OperationExample
Source§impl Debug for OperationExample
impl Debug for OperationExample
Source§impl<'de> Deserialize<'de> for OperationExample
impl<'de> Deserialize<'de> for OperationExample
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 OperationExample
impl PartialEq for OperationExample
Source§impl Serialize for OperationExample
impl Serialize for OperationExample
impl StructuralPartialEq for OperationExample
Auto Trait Implementations§
impl Freeze for OperationExample
impl RefUnwindSafe for OperationExample
impl Send for OperationExample
impl Sync for OperationExample
impl Unpin for OperationExample
impl UnsafeUnpin for OperationExample
impl UnwindSafe for OperationExample
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