pub struct ValueSchema {
pub value: FieldType,
pub optional: bool,
}Expand description
Payload shape, shared with the field type/optionality rules.
Fields§
§value: FieldTypeExact scalar, bounded list or compiler-resolved named type.
optional: boolWhether the payload carries an explicit presence byte.
Trait Implementations§
Source§impl Clone for ValueSchema
impl Clone for ValueSchema
impl Copy for ValueSchema
Source§impl Debug for ValueSchema
impl Debug for ValueSchema
impl Eq for ValueSchema
Source§impl PartialEq for ValueSchema
impl PartialEq for ValueSchema
impl StructuralPartialEq for ValueSchema
Auto Trait Implementations§
impl Forget for ValueSchema
impl Freeze for ValueSchema
impl Move for ValueSchema
impl RefUnwindSafe for ValueSchema
impl Send for ValueSchema
impl Sync for ValueSchema
impl Unpin for ValueSchema
impl UnsafeUnpin for ValueSchema
impl UnwindSafe for ValueSchema
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