pub struct ContextDebugRegistration {
pub origin: Origin,
pub protocol: Option<ContextSpanned<OneOrMany<Name>>>,
pub from: ContextSpanned<OfferFromRef>,
pub as: Option<ContextSpanned<Name>>,
}Fields§
§origin: Origin§protocol: Option<ContextSpanned<OneOrMany<Name>>>§from: ContextSpanned<OfferFromRef>§as: Option<ContextSpanned<Name>>Trait Implementations§
Source§impl AsClauseContext for ContextDebugRegistration
impl AsClauseContext for ContextDebugRegistration
fn as(&self) -> Option<ContextSpanned<&BorrowedName>>
Source§impl Clone for ContextDebugRegistration
impl Clone for ContextDebugRegistration
Source§fn clone(&self) -> ContextDebugRegistration
fn clone(&self) -> ContextDebugRegistration
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 ContextDebugRegistration
impl ContextCapabilityClause for ContextDebugRegistration
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 set_service(&mut self, _o: Option<ContextSpanned<OneOrMany<Name>>>)
fn set_protocol(&mut self, o: Option<ContextSpanned<OneOrMany<Name>>>)
fn set_directory(&mut self, _o: Option<ContextSpanned<OneOrMany<Name>>>)
fn set_storage(&mut self, _o: Option<ContextSpanned<OneOrMany<Name>>>)
fn set_runner(&mut self, _o: Option<ContextSpanned<OneOrMany<Name>>>)
fn set_resolver(&mut self, _o: Option<ContextSpanned<OneOrMany<Name>>>)
fn set_event_stream(&mut self, _o: Option<ContextSpanned<OneOrMany<Name>>>)
fn set_dictionary(&mut self, _o: Option<ContextSpanned<OneOrMany<Name>>>)
fn set_config(&mut self, _o: Option<ContextSpanned<OneOrMany<Name>>>)
fn origin(&self) -> &Origin
fn file_path(&self) -> PathBuf
fn capability_type(&self, origin: Option<Origin>) -> Result<&'static str, Error>
Source§fn 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”].fn set_names(&mut self, names: Vec<Name>)
Source§impl Debug for ContextDebugRegistration
impl Debug for ContextDebugRegistration
Source§impl PartialEq for ContextDebugRegistration
impl PartialEq for ContextDebugRegistration
impl StructuralPartialEq for ContextDebugRegistration
Auto Trait Implementations§
impl Freeze for ContextDebugRegistration
impl RefUnwindSafe for ContextDebugRegistration
impl Send for ContextDebugRegistration
impl Sync for ContextDebugRegistration
impl Unpin for ContextDebugRegistration
impl UnwindSafe for ContextDebugRegistration
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<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