pub struct ConstructionSchema {
pub method: &'static str,
pub label: &'static str,
pub doc: &'static str,
pub result: DatumKind,
pub inputs: &'static [Role],
pub params: &'static [ArgSchema],
}Expand description
One way to build a datum (see crate::Construction): what it builds,
what it needs selected — one entity per input, in any order — and the
values it takes besides.
Fields§
§method: &'static strHow the construction is spelled: offset.
label: &'static str§doc: &'static str§result: DatumKind§inputs: &'static [Role]§params: &'static [ArgSchema]Trait Implementations§
Source§impl Clone for ConstructionSchema
impl Clone for ConstructionSchema
Source§fn clone(&self) -> ConstructionSchema
fn clone(&self) -> ConstructionSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstructionSchema
impl Debug for ConstructionSchema
Source§impl PartialEq for ConstructionSchema
impl PartialEq for ConstructionSchema
Source§fn eq(&self, other: &ConstructionSchema) -> bool
fn eq(&self, other: &ConstructionSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConstructionSchema
impl Serialize for ConstructionSchema
impl StructuralPartialEq for ConstructionSchema
Auto Trait Implementations§
impl Freeze for ConstructionSchema
impl RefUnwindSafe for ConstructionSchema
impl Send for ConstructionSchema
impl Sync for ConstructionSchema
impl Unpin for ConstructionSchema
impl UnsafeUnpin for ConstructionSchema
impl UnwindSafe for ConstructionSchema
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> 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