pub struct Requirement<'a> {
pub bindings: &'a [String],
pub params: &'a BTreeMap<String, String>,
pub optional: bool,
pub documents: usize,
}Expand description
A target’s requirement on a desired resource, as its descriptor lists it (core §3.3).
Fields§
§bindings: &'a [String]The provider addresses, <system>/<service>, a chunk possibly *.
params: &'a BTreeMap<String, String>The parameter bindings, as configured (core R2, R3).
optional: boolWhether the role is optional (core §3.1).
documents: usizeHow many desired resources of the author’s declaration the
requirement names (text 0.6, F-218): one for a requirement §2.1
allows, one role per document type; two or more is
BindingProblem::TwoDocuments.
Trait Implementations§
Source§impl<'a> Clone for Requirement<'a>
impl<'a> Clone for Requirement<'a>
impl<'a> Copy for Requirement<'a>
Auto Trait Implementations§
impl<'a> Forget for Requirement<'a>
impl<'a> Freeze for Requirement<'a>
impl<'a> Move for Requirement<'a>
impl<'a> RefUnwindSafe for Requirement<'a>
impl<'a> Send for Requirement<'a>
impl<'a> Sync for Requirement<'a>
impl<'a> Unpin for Requirement<'a>
impl<'a> UnsafeUnpin for Requirement<'a>
impl<'a> UnwindSafe for Requirement<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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