pub struct ContextOffer {Show 18 fields
pub service: Option<ContextSpanned<OneOrMany<Name>>>,
pub protocol: Option<ContextSpanned<OneOrMany<Name>>>,
pub directory: Option<ContextSpanned<OneOrMany<Name>>>,
pub runner: Option<ContextSpanned<OneOrMany<Name>>>,
pub resolver: Option<ContextSpanned<OneOrMany<Name>>>,
pub storage: Option<ContextSpanned<OneOrMany<Name>>>,
pub dictionary: Option<ContextSpanned<OneOrMany<Name>>>,
pub config: Option<ContextSpanned<OneOrMany<Name>>>,
pub from: ContextSpanned<OneOrMany<OfferFromRef>>,
pub to: ContextSpanned<OneOrMany<OfferToRef>>,
pub as: Option<ContextSpanned<Name>>,
pub dependency: Option<ContextSpanned<DependencyType>>,
pub rights: Option<ContextSpanned<Rights>>,
pub subdir: Option<ContextSpanned<RelativePath>>,
pub event_stream: Option<ContextSpanned<OneOrMany<Name>>>,
pub scope: Option<ContextSpanned<OneOrMany<EventScope>>>,
pub availability: Option<ContextSpanned<Availability>>,
pub source_availability: Option<ContextSpanned<SourceAvailability>>,
}Fields§
§service: Option<ContextSpanned<OneOrMany<Name>>>§protocol: Option<ContextSpanned<OneOrMany<Name>>>§directory: Option<ContextSpanned<OneOrMany<Name>>>§runner: Option<ContextSpanned<OneOrMany<Name>>>§resolver: Option<ContextSpanned<OneOrMany<Name>>>§storage: Option<ContextSpanned<OneOrMany<Name>>>§dictionary: Option<ContextSpanned<OneOrMany<Name>>>§config: Option<ContextSpanned<OneOrMany<Name>>>§from: ContextSpanned<OneOrMany<OfferFromRef>>§to: ContextSpanned<OneOrMany<OfferToRef>>§as: Option<ContextSpanned<Name>>§dependency: Option<ContextSpanned<DependencyType>>§rights: Option<ContextSpanned<Rights>>§subdir: Option<ContextSpanned<RelativePath>>§event_stream: Option<ContextSpanned<OneOrMany<Name>>>§scope: Option<ContextSpanned<OneOrMany<EventScope>>>§availability: Option<ContextSpanned<Availability>>§source_availability: Option<ContextSpanned<SourceAvailability>>Trait Implementations§
Source§impl AsClauseContext for ContextOffer
impl AsClauseContext for ContextOffer
fn as(&self) -> Option<ContextSpanned<&BorrowedName>>
Source§impl Clone for ContextOffer
impl Clone for ContextOffer
Source§fn clone(&self) -> ContextOffer
fn clone(&self) -> ContextOffer
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 ContextOffer
impl ContextCapabilityClause for ContextOffer
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 ContextOffer
impl ContextPathClause for ContextOffer
Source§impl Debug for ContextOffer
impl Debug for ContextOffer
Source§impl FromClauseContext for ContextOffer
impl FromClauseContext for ContextOffer
Source§impl PartialEq for ContextOffer
impl PartialEq for ContextOffer
impl Eq for ContextOffer
Auto Trait Implementations§
impl Freeze for ContextOffer
impl RefUnwindSafe for ContextOffer
impl Send for ContextOffer
impl Sync for ContextOffer
impl Unpin for ContextOffer
impl UnwindSafe for ContextOffer
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