pub struct CapabilityProfile {
pub id: String,
pub description: Option<String>,
pub requires: Vec<CapabilityRequirement>,
pub consumes: Vec<CapabilityConsume>,
}Expand description
A named bundle of capability requirements and consumes.
Fields§
§id: StringProfile identifier.
description: Option<String>Optional human-readable description.
requires: Vec<CapabilityRequirement>Requirements included in the profile.
consumes: Vec<CapabilityConsume>Consumes included in the profile.
Implementations§
Trait Implementations§
Source§impl Clone for CapabilityProfile
impl Clone for CapabilityProfile
Source§fn clone(&self) -> CapabilityProfile
fn clone(&self) -> CapabilityProfile
Returns a duplicate of the value. Read more
1.0.0 · 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 CapabilityProfile
impl Debug for CapabilityProfile
Source§impl<'de> Deserialize<'de> for CapabilityProfile
impl<'de> Deserialize<'de> for CapabilityProfile
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 CapabilityProfile
impl JsonSchema for CapabilityProfile
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 CapabilityProfile
impl PartialEq for CapabilityProfile
Source§impl Serialize for CapabilityProfile
impl Serialize for CapabilityProfile
impl Eq for CapabilityProfile
impl StructuralPartialEq for CapabilityProfile
Auto Trait Implementations§
impl Freeze for CapabilityProfile
impl RefUnwindSafe for CapabilityProfile
impl Send for CapabilityProfile
impl Sync for CapabilityProfile
impl Unpin for CapabilityProfile
impl UnsafeUnpin for CapabilityProfile
impl UnwindSafe for CapabilityProfile
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