pub struct ProvidedCapability {
pub name: String,
pub description: String,
pub request_schema: Option<Value>,
pub response_schema: Option<Value>,
pub priority: i32,
pub examples: Vec<CapabilityExample>,
}Expand description
Declaration of a service capability that an app provides. Used in app manifests and registration APIs.
Fields§
§name: StringDot-notation capability name (e.g., “terminal.create_session”)
description: StringHuman-readable description of what this capability does
request_schema: Option<Value>JSON Schema for request payload validation (None = no validation)
response_schema: Option<Value>JSON Schema for response payload validation (None = no validation)
priority: i32Provider priority (lower = preferred, default 100)
examples: Vec<CapabilityExample>Example request payloads for developer documentation and testing
Trait Implementations§
Source§impl Clone for ProvidedCapability
impl Clone for ProvidedCapability
Source§fn clone(&self) -> ProvidedCapability
fn clone(&self) -> ProvidedCapability
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 ProvidedCapability
impl Debug for ProvidedCapability
Source§impl<'de> Deserialize<'de> for ProvidedCapability
impl<'de> Deserialize<'de> for ProvidedCapability
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 ProvidedCapability
impl RefUnwindSafe for ProvidedCapability
impl Send for ProvidedCapability
impl Sync for ProvidedCapability
impl Unpin for ProvidedCapability
impl UnsafeUnpin for ProvidedCapability
impl UnwindSafe for ProvidedCapability
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