pub struct StructSchema {
pub name: &'static str,
pub transparent: bool,
pub max_depth: Option<u64>,
pub deny_unknown_fields: bool,
pub fields: &'static [FieldSchema],
}Expand description
Compile-time description of a struct.
Fields§
§name: &'static strType name.
transparent: boolWhether #[njson(transparent)].
max_depth: Option<u64>Maximum container nesting allowed below this struct
(#[njson(max_depth = N)]).
deny_unknown_fields: boolWhether unknown fields are rejected
(#[njson(deny_unknown_fields)]).
fields: &'static [FieldSchema]Field list.
Trait Implementations§
Source§impl Clone for StructSchema
impl Clone for StructSchema
Source§fn clone(&self) -> StructSchema
fn clone(&self) -> StructSchema
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 StructSchema
Source§impl Debug for StructSchema
impl Debug for StructSchema
impl Eq for StructSchema
Source§impl PartialEq for StructSchema
impl PartialEq for StructSchema
impl StructuralPartialEq for StructSchema
Auto Trait Implementations§
impl Freeze for StructSchema
impl RefUnwindSafe for StructSchema
impl Send for StructSchema
impl Sync for StructSchema
impl Unpin for StructSchema
impl UnsafeUnpin for StructSchema
impl UnwindSafe for StructSchema
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