pub struct ContextUse {Show 23 fields
pub service: Option<ContextSpanned<OneOrMany<Name>>>,
pub protocol: Option<ContextSpanned<OneOrMany<Name>>>,
pub directory: Option<ContextSpanned<Name>>,
pub storage: Option<ContextSpanned<Name>>,
pub event_stream: Option<ContextSpanned<OneOrMany<Name>>>,
pub runner: Option<ContextSpanned<Name>>,
pub config: Option<ContextSpanned<Name>>,
pub dictionary: Option<ContextSpanned<OneOrMany<Name>>>,
pub from: Option<ContextSpanned<UseFromRef>>,
pub path: Option<ContextSpanned<Path>>,
pub numbered_handle: Option<ContextSpanned<HandleType>>,
pub rights: Option<ContextSpanned<Rights>>,
pub subdir: Option<ContextSpanned<RelativePath>>,
pub scope: Option<ContextSpanned<OneOrMany<EventScope>>>,
pub filter: Option<ContextSpanned<Map<String, Value>>>,
pub dependency: Option<ContextSpanned<DependencyType>>,
pub availability: Option<ContextSpanned<Availability>>,
pub key: Option<ContextSpanned<Name>>,
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 config_default: Option<ContextSpanned<Value>>,
}Fields§
§service: Option<ContextSpanned<OneOrMany<Name>>>§protocol: Option<ContextSpanned<OneOrMany<Name>>>§directory: Option<ContextSpanned<Name>>§storage: Option<ContextSpanned<Name>>§event_stream: Option<ContextSpanned<OneOrMany<Name>>>§runner: Option<ContextSpanned<Name>>§config: Option<ContextSpanned<Name>>§dictionary: Option<ContextSpanned<OneOrMany<Name>>>§from: Option<ContextSpanned<UseFromRef>>§path: Option<ContextSpanned<Path>>§numbered_handle: Option<ContextSpanned<HandleType>>§rights: Option<ContextSpanned<Rights>>§subdir: Option<ContextSpanned<RelativePath>>§scope: Option<ContextSpanned<OneOrMany<EventScope>>>§filter: Option<ContextSpanned<Map<String, Value>>>§dependency: Option<ContextSpanned<DependencyType>>§availability: Option<ContextSpanned<Availability>>§key: Option<ContextSpanned<Name>>§config_type: Option<ContextSpanned<ConfigType>>§config_max_size: Option<ContextSpanned<NonZeroU32>>§config_max_count: Option<ContextSpanned<NonZeroU32>>§config_element_type: Option<ContextSpanned<ConfigNestedValueType>>§config_default: Option<ContextSpanned<Value>>Trait Implementations§
Source§impl Clone for ContextUse
impl Clone for ContextUse
Source§fn clone(&self) -> ContextUse
fn clone(&self) -> ContextUse
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 ContextUse
impl ContextCapabilityClause for ContextUse
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 ContextPathClause for ContextUse
impl ContextPathClause for ContextUse
Source§impl Debug for ContextUse
impl Debug for ContextUse
Source§impl PartialEq for ContextUse
impl PartialEq for ContextUse
impl Eq for ContextUse
Auto Trait Implementations§
impl Freeze for ContextUse
impl RefUnwindSafe for ContextUse
impl Send for ContextUse
impl Sync for ContextUse
impl Unpin for ContextUse
impl UnwindSafe for ContextUse
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