pub struct WireField {
pub name: String,
pub descriptor: String,
pub required: bool,
}Expand description
One field as a generated schema declares it.
This is how the contract tests read a type’s fields: off the schema the type generates rather than off a table maintained beside it.
Fields§
§name: StringThe field’s name on the wire.
descriptor: StringWhat the field is: a referenced type’s name, or a primitive’s.
required: boolWhether an instance must carry it.
Trait Implementations§
impl Eq for WireField
Source§impl Ord for WireField
impl Ord for WireField
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for WireField
impl PartialOrd for WireField
impl StructuralPartialEq for WireField
Auto Trait Implementations§
impl Freeze for WireField
impl RefUnwindSafe for WireField
impl Send for WireField
impl Sync for WireField
impl Unpin for WireField
impl UnsafeUnpin for WireField
impl UnwindSafe for WireField
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