pub struct CommandDef {
pub name: String,
pub description: String,
pub params: Vec<ParamDef>,
pub has_body: bool,
pub method: Option<String>,
pub path: Option<String>,
pub content_type: Option<String>,
pub tool_name: Option<String>,
pub graphql_operation_type: Option<String>,
pub graphql_field_name: Option<String>,
pub graphql_return_type: Option<Value>,
}Fields§
§name: String§description: String§params: Vec<ParamDef>§has_body: bool§method: Option<String>§path: Option<String>§content_type: Option<String>§tool_name: Option<String>§graphql_operation_type: Option<String>§graphql_field_name: Option<String>§graphql_return_type: Option<Value>Implementations§
Trait Implementations§
Source§impl Clone for CommandDef
impl Clone for CommandDef
Source§fn clone(&self) -> CommandDef
fn clone(&self) -> CommandDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandDef
impl Debug for CommandDef
Source§impl Default for CommandDef
impl Default for CommandDef
Source§fn default() -> CommandDef
fn default() -> CommandDef
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandDef
impl RefUnwindSafe for CommandDef
impl Send for CommandDef
impl Sync for CommandDef
impl Unpin for CommandDef
impl UnsafeUnpin for CommandDef
impl UnwindSafe for CommandDef
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