pub struct Declared {
pub name: &'static str,
pub required: bool,
pub kind: ValueKind,
pub shape: Option<&'static str>,
pub repeated: bool,
}Expand description
One value declared beside an operation, at one place in its request.
Only the operations whose body is not one action of the vocabulary declare
their values this way; a mutating operation’s are the fields the contracts’
own PrintAction declares for the variant it names.
Fields§
§name: &'static strWhat it is called, spelled as the wire spells it.
required: boolWhether a request without it is refused.
kind: ValueKindWhat kind of value it takes.
shape: Option<&'static str>The contracts’ own type it is a value of, when it is one of theirs.
A consumer generating a typed client needs the type rather than the
kind: ValueKind::Structured says a manifest is a document, and not
that it is a JobManifest. A value this system mints no type for — a
count, a reason — declares none.
repeated: boolWhether a request may carry it more than once, each a value of its own: only a query value can be, and it is then a list of its kind.
Implementations§
Trait Implementations§
impl Copy for Declared
impl Eq for Declared
Source§impl Ord for Declared
impl Ord for Declared
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Declared
impl PartialOrd for Declared
impl StructuralPartialEq for Declared
Auto Trait Implementations§
impl Forget for Declared
impl Freeze for Declared
impl Move for Declared
impl RefUnwindSafe for Declared
impl Send for Declared
impl Sync for Declared
impl Unpin for Declared
impl UnsafeUnpin for Declared
impl UnwindSafe for Declared
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
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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