pub struct CommandDescriptor {Show 19 fields
pub schema_version: u32,
pub command_id: CommandId,
pub command_version: String,
pub app_id: AppId,
pub upstream_id: String,
pub label_key: String,
pub description_key: String,
pub input_schema: Value,
pub output_schema: Value,
pub target_kinds: Vec<TargetKind>,
pub effects: EffectSet,
pub required_capabilities: Vec<String>,
pub undo_policy: UndoPolicy,
pub interaction: InteractionKind,
pub menu: Option<String>,
pub toolbox: Option<String>,
pub tool_chain: Option<String>,
pub orb_group: Option<String>,
pub shortcuts: Vec<String>,
}Expand description
Canonical metadata descriptor for an application command.
Fields§
§schema_version: u32§command_id: CommandId§command_version: String§app_id: AppId§upstream_id: String§label_key: String§description_key: String§input_schema: Value§output_schema: Value§target_kinds: Vec<TargetKind>§effects: EffectSet§required_capabilities: Vec<String>§undo_policy: UndoPolicy§interaction: InteractionKind§toolbox: Option<String>§tool_chain: Option<String>§orb_group: Option<String>§shortcuts: Vec<String>Implementations§
Source§impl CommandDescriptor
impl CommandDescriptor
Sourcepub fn validate(&self) -> Result<(), ContractError>
pub fn validate(&self) -> Result<(), ContractError>
Validate descriptor fields against the canonical contract.
Trait Implementations§
Source§impl Clone for CommandDescriptor
impl Clone for CommandDescriptor
Source§impl Debug for CommandDescriptor
impl Debug for CommandDescriptor
Source§impl<'de> Deserialize<'de> for CommandDescriptor
impl<'de> Deserialize<'de> for CommandDescriptor
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
impl Eq for CommandDescriptor
Source§impl PartialEq for CommandDescriptor
impl PartialEq for CommandDescriptor
Source§impl Serialize for CommandDescriptor
impl Serialize for CommandDescriptor
impl StructuralPartialEq for CommandDescriptor
Auto Trait Implementations§
impl Freeze for CommandDescriptor
impl RefUnwindSafe for CommandDescriptor
impl Send for CommandDescriptor
impl Sync for CommandDescriptor
impl Unpin for CommandDescriptor
impl UnsafeUnpin for CommandDescriptor
impl UnwindSafe for CommandDescriptor
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