pub struct OpFieldSchema {
pub name: &'static str,
pub ty: &'static str,
pub required: bool,
}Expand description
One JSON field belonging to a transaction op (excluding the "op" tag).
Fields§
§name: &'static strThe JSON key name for this field.
ty: &'static strShort human/agent-readable type hint, e.g. "node id", "token ref",
"string", "f64", "bool", "enum: left|center|right".
required: booltrue when the field MUST be present; false when it may be omitted.
Trait Implementations§
Source§impl Clone for OpFieldSchema
impl Clone for OpFieldSchema
Source§fn clone(&self) -> OpFieldSchema
fn clone(&self) -> OpFieldSchema
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 OpFieldSchema
impl Debug for OpFieldSchema
Source§impl PartialEq for OpFieldSchema
impl PartialEq for OpFieldSchema
Source§fn eq(&self, other: &OpFieldSchema) -> bool
fn eq(&self, other: &OpFieldSchema) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OpFieldSchema
Auto Trait Implementations§
impl Freeze for OpFieldSchema
impl RefUnwindSafe for OpFieldSchema
impl Send for OpFieldSchema
impl Sync for OpFieldSchema
impl Unpin for OpFieldSchema
impl UnsafeUnpin for OpFieldSchema
impl UnwindSafe for OpFieldSchema
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