pub trait ContextCapabilityClause {
Show 14 methods
// Required methods
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 dictionary(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>;
fn config(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>;
fn event_stream(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>;
fn are_many_names_allowed(&self) -> bool;
fn decl_type(&self) -> &'static str;
fn supported(&self) -> &[&'static str];
// Provided methods
fn capability_type(
&self,
origin: Option<Origin>,
) -> Result<&'static str, Error> { ... }
fn names(&self) -> Vec<&BorrowedName> ⓘ { ... }
}Required Methods§
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 dictionary(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn config(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
fn event_stream(&self) -> Option<ContextSpanned<OneOrMany<&BorrowedName>>>
Sourcefn 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 decl_type(&self) -> &'static str
fn supported(&self) -> &[&'static str]
Provided Methods§
fn capability_type(&self, origin: Option<Origin>) -> Result<&'static str, Error>
Sourcefn names(&self) -> Vec<&BorrowedName> ⓘ
fn names(&self) -> Vec<&BorrowedName> ⓘ
Returns the names of the capabilities in this clause.
If protocol() returns Some(OneOrMany::Many(vec!["a", "b"])), this returns![“a”, “b”].