pub struct OutputSchema {
pub command: String,
pub schema_version: String,
pub format: String,
pub success: Value,
pub error: Value,
}Expand description
Output schema for a command (JSON Schema format)
Fields§
§command: StringCommand this schema applies to
schema_version: StringSchema version
format: StringOutput format (always “json”)
success: ValueSchema for successful response
error: ValueSchema for error response
Trait Implementations§
Source§impl Clone for OutputSchema
impl Clone for OutputSchema
Source§fn clone(&self) -> OutputSchema
fn clone(&self) -> OutputSchema
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 OutputSchema
impl Debug for OutputSchema
Source§impl<'de> Deserialize<'de> for OutputSchema
impl<'de> Deserialize<'de> for OutputSchema
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
Auto Trait Implementations§
impl Freeze for OutputSchema
impl RefUnwindSafe for OutputSchema
impl Send for OutputSchema
impl Sync for OutputSchema
impl Unpin for OutputSchema
impl UnwindSafe for OutputSchema
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