pub struct ContextCapability {Show 21 fields
pub service: Option<ContextSpanned<OneOrMany<Name>>>,
pub protocol: Option<ContextSpanned<OneOrMany<Name>>>,
pub directory: Option<ContextSpanned<Name>>,
pub storage: Option<ContextSpanned<Name>>,
pub runner: Option<ContextSpanned<Name>>,
pub resolver: Option<ContextSpanned<Name>>,
pub event_stream: Option<ContextSpanned<OneOrMany<Name>>>,
pub dictionary: Option<ContextSpanned<Name>>,
pub config: Option<ContextSpanned<Name>>,
pub path: Option<ContextSpanned<Path>>,
pub rights: Option<ContextSpanned<Rights>>,
pub from: Option<ContextSpanned<CapabilityFromRef>>,
pub backing_dir: Option<ContextSpanned<Name>>,
pub subdir: Option<ContextSpanned<RelativePath>>,
pub storage_id: Option<ContextSpanned<StorageId>>,
pub config_type: Option<ContextSpanned<ConfigType>>,
pub config_max_size: Option<ContextSpanned<NonZeroU32>>,
pub config_max_count: Option<ContextSpanned<NonZeroU32>>,
pub config_element_type: Option<ContextSpanned<ConfigNestedValueType>>,
pub value: Option<ContextSpanned<Value>>,
pub delivery: Option<ContextSpanned<DeliveryType>>,
}Fields§
§service: Option<ContextSpanned<OneOrMany<Name>>>§protocol: Option<ContextSpanned<OneOrMany<Name>>>§directory: Option<ContextSpanned<Name>>§storage: Option<ContextSpanned<Name>>§runner: Option<ContextSpanned<Name>>§resolver: Option<ContextSpanned<Name>>§event_stream: Option<ContextSpanned<OneOrMany<Name>>>§dictionary: Option<ContextSpanned<Name>>§config: Option<ContextSpanned<Name>>§path: Option<ContextSpanned<Path>>§rights: Option<ContextSpanned<Rights>>§from: Option<ContextSpanned<CapabilityFromRef>>§backing_dir: Option<ContextSpanned<Name>>§subdir: Option<ContextSpanned<RelativePath>>§storage_id: Option<ContextSpanned<StorageId>>§config_type: Option<ContextSpanned<ConfigType>>§config_max_size: Option<ContextSpanned<NonZeroU32>>§config_max_count: Option<ContextSpanned<NonZeroU32>>§config_element_type: Option<ContextSpanned<ConfigNestedValueType>>§value: Option<ContextSpanned<Value>>§delivery: Option<ContextSpanned<DeliveryType>>Trait Implementations§
Source§impl AsClauseContext for ContextCapability
impl AsClauseContext for ContextCapability
fn as(&self) -> Option<ContextSpanned<&BorrowedName>>
Source§impl Clone for ContextCapability
impl Clone for ContextCapability
Source§fn clone(&self) -> ContextCapability
fn clone(&self) -> ContextCapability
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 ContextCapabilityClause for ContextCapability
impl ContextCapabilityClause for ContextCapability
fn service(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn protocol(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn directory(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn storage(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn runner(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn resolver(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn event_stream(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn dictionary(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn config(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn decl_type(&self) -> &'static str
fn supported(&self) -> &[&'static str]
Source§fn are_many_names_allowed(&self) -> bool
fn are_many_names_allowed(&self) -> bool
Returns true if this capability type allows the ::Many variant of OneOrMany.
fn capability_type(&self, origin: Option<Origin>) -> Result<&'static str, Error>
Source§impl Debug for ContextCapability
impl Debug for ContextCapability
Source§impl PartialEq for ContextCapability
impl PartialEq for ContextCapability
impl Eq for ContextCapability
Auto Trait Implementations§
impl Freeze for ContextCapability
impl RefUnwindSafe for ContextCapability
impl Send for ContextCapability
impl Sync for ContextCapability
impl Unpin for ContextCapability
impl UnwindSafe for ContextCapability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more