pub struct FieldSchema {
pub name: &'static str,
pub orig: &'static str,
pub required: bool,
pub flattened: bool,
pub policy: Policy,
pub ty: TypeSchema,
}Expand description
Compile-time description of a struct field.
Fields§
§name: &'static strSerialized field name (after rename / rename_all).
orig: &'static strOriginal Rust field name (for error messages).
required: boolWhether the field is required.
flattened: boolWhether #[njson(flatten)].
policy: PolicyDeclared safety policy for this field.
ty: TypeSchemaField type.
Trait Implementations§
Source§impl Clone for FieldSchema
impl Clone for FieldSchema
Source§fn clone(&self) -> FieldSchema
fn clone(&self) -> FieldSchema
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 moreimpl Copy for FieldSchema
Source§impl Debug for FieldSchema
impl Debug for FieldSchema
impl Eq for FieldSchema
Source§impl PartialEq for FieldSchema
impl PartialEq for FieldSchema
impl StructuralPartialEq for FieldSchema
Auto Trait Implementations§
impl Freeze for FieldSchema
impl RefUnwindSafe for FieldSchema
impl Send for FieldSchema
impl Sync for FieldSchema
impl Unpin for FieldSchema
impl UnsafeUnpin for FieldSchema
impl UnwindSafe for FieldSchema
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