pub struct ContractDescriptor {Show 13 fields
pub id: String,
pub version: String,
pub kind: i32,
pub mode: String,
pub io_msg_type: String,
pub io_srv_type: String,
pub source_toml_path: String,
pub msg_fields: Vec<FieldSpec>,
pub srv_request_fields: Vec<FieldSpec>,
pub srv_response_fields: Vec<FieldSpec>,
pub description: String,
pub cross_namespace: bool,
pub llm_callable: Option<bool>,
}Fields§
§id: String§version: String§kind: i32Kind of CapabilityProvider this contract is intended for.
mode: String§io_msg_type: String§io_srv_type: String§source_toml_path: String§msg_fields: Vec<FieldSpec>§srv_request_fields: Vec<FieldSpec>§srv_response_fields: Vec<FieldSpec>§description: StringGeneric natural-language description for the Capability this
contract defines – what the contract does in the abstract,
shared by every CapabilityProvider that declares it. Consumers
MERGE this with each Capability’s instance-specific
DeclareCapabilityRequest.description at consume time; the two
are complementary (generic + instance-specific), not
alternatives.
cross_namespace: boolAllow providers from any primary namespace to implement this contract without a namespace-mismatch diagnostic. Intended for shared framework contracts such as lifecycle and health. Defaults to false.
llm_callable: Option<bool>Whether Pilot may include capabilities implementing this contract in the model-facing capability catalog. Absence means true for compatibility with Atlas instances built before this field existed.
Implementations§
Source§impl ContractDescriptor
impl ContractDescriptor
Trait Implementations§
Source§impl Clone for ContractDescriptor
impl Clone for ContractDescriptor
Source§fn clone(&self) -> ContractDescriptor
fn clone(&self) -> ContractDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContractDescriptor
impl Debug for ContractDescriptor
Source§impl Default for ContractDescriptor
impl Default for ContractDescriptor
Source§impl Message for ContractDescriptor
impl Message for ContractDescriptor
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for ContractDescriptor
impl PartialEq for ContractDescriptor
Source§fn eq(&self, other: &ContractDescriptor) -> bool
fn eq(&self, other: &ContractDescriptor) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContractDescriptor
Auto Trait Implementations§
impl Freeze for ContractDescriptor
impl RefUnwindSafe for ContractDescriptor
impl Send for ContractDescriptor
impl Sync for ContractDescriptor
impl Unpin for ContractDescriptor
impl UnsafeUnpin for ContractDescriptor
impl UnwindSafe for ContractDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].