pub struct CapabilityDescriptor {
pub name: String,
pub description: String,
pub module: String,
pub safety: SafetyClass,
pub input_schema: Value,
pub output_schema: Value,
}Fields§
§name: String§description: String§module: String§safety: SafetyClass§input_schema: Value§output_schema: ValueTrait Implementations§
Source§impl Clone for CapabilityDescriptor
impl Clone for CapabilityDescriptor
Source§fn clone(&self) -> CapabilityDescriptor
fn clone(&self) -> CapabilityDescriptor
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 CapabilityDescriptor
impl Debug for CapabilityDescriptor
Source§impl<'de> Deserialize<'de> for CapabilityDescriptor
impl<'de> Deserialize<'de> for CapabilityDescriptor
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 JsonSchema for CapabilityDescriptor
impl JsonSchema for CapabilityDescriptor
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CapabilityDescriptor
impl PartialEq for CapabilityDescriptor
Source§fn eq(&self, other: &CapabilityDescriptor) -> bool
fn eq(&self, other: &CapabilityDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CapabilityDescriptor
impl Serialize for CapabilityDescriptor
impl StructuralPartialEq for CapabilityDescriptor
Auto Trait Implementations§
impl Freeze for CapabilityDescriptor
impl RefUnwindSafe for CapabilityDescriptor
impl Send for CapabilityDescriptor
impl Sync for CapabilityDescriptor
impl Unpin for CapabilityDescriptor
impl UnsafeUnpin for CapabilityDescriptor
impl UnwindSafe for CapabilityDescriptor
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