pub struct CapabilitySummary {
pub id: CapabilityId,
pub module: ModuleId,
pub kind: CapabilityKind,
pub title: String,
pub description: String,
pub provenance: Provenance,
pub exposure: Exposure,
pub stability: Stability,
pub tags: Vec<String>,
pub benchmark: BenchmarkPolicy,
pub cache: CachePolicy,
}Expand description
One capability as a listing shows it: everything the descriptor says except its two
schemas, which capabilities.describe answers for one capability. A listing of a
repository’s registry runs to hundreds of entries; their schemas would be megabytes
of the same object view repeated.
Fields§
§id: CapabilityIdThe canonical identity.
module: ModuleIdThe module that composes it.
kind: CapabilityKindQuery, command or resource.
title: StringThe short name.
description: StringThe one-paragraph description.
provenance: ProvenanceWhere it came from.
exposure: ExposureWhere it is projected.
stability: StabilityWhere it stands.
Free tags.
benchmark: BenchmarkPolicyWhether it is a benchmark target.
cache: CachePolicyWhether the executor keeps its results.
Trait Implementations§
Source§impl Clone for CapabilitySummary
impl Clone for CapabilitySummary
Source§fn clone(&self) -> CapabilitySummary
fn clone(&self) -> CapabilitySummary
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 CapabilitySummary
impl Debug for CapabilitySummary
Source§impl<'de> Deserialize<'de> for CapabilitySummary
impl<'de> Deserialize<'de> for CapabilitySummary
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 CapabilitySummary
Source§impl From<&Capability> for CapabilitySummary
impl From<&Capability> for CapabilitySummary
Source§fn from(c: &Capability) -> Self
fn from(c: &Capability) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for CapabilitySummary
impl JsonSchema for CapabilitySummary
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 CapabilitySummary
impl PartialEq for CapabilitySummary
Source§fn eq(&self, other: &CapabilitySummary) -> bool
fn eq(&self, other: &CapabilitySummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CapabilitySummary
impl Serialize for CapabilitySummary
impl StructuralPartialEq for CapabilitySummary
Auto Trait Implementations§
impl Freeze for CapabilitySummary
impl RefUnwindSafe for CapabilitySummary
impl Send for CapabilitySummary
impl Sync for CapabilitySummary
impl Unpin for CapabilitySummary
impl UnsafeUnpin for CapabilitySummary
impl UnwindSafe for CapabilitySummary
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.