pub struct CommandSchema {
pub command: String,
pub input_schema: Value,
pub output_schema: Value,
}Expand description
JSON Schema descriptor for a command’s input and output.
Fields§
§command: String§input_schema: Value§output_schema: ValueImplementations§
Source§impl CommandSchema
impl CommandSchema
Sourcepub fn for_command(command: &str) -> Self
pub fn for_command(command: &str) -> Self
Build the CommandSchema for the given command name.
Trait Implementations§
Source§impl Clone for CommandSchema
impl Clone for CommandSchema
Source§fn clone(&self) -> CommandSchema
fn clone(&self) -> CommandSchema
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 CommandSchema
impl Debug for CommandSchema
Source§impl<'de> Deserialize<'de> for CommandSchema
impl<'de> Deserialize<'de> for CommandSchema
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 CommandSchema
impl RefUnwindSafe for CommandSchema
impl Send for CommandSchema
impl Sync for CommandSchema
impl Unpin for CommandSchema
impl UnsafeUnpin for CommandSchema
impl UnwindSafe for CommandSchema
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