pub struct FieldExportMeta {
pub name: &'static str,
pub stored: &'static str,
pub ts_type: &'static str,
pub full_ts_type: &'static str,
pub rust_type: &'static str,
pub kind: FieldKind,
pub accepts: fn(&str) -> bool,
pub default: fn() -> Option<String>,
pub resets: Option<bool>,
}Fields§
§name: &'static str§stored: &'static strWhere the field is stored under its holder, its levels joined by dots:
the name after rename_all or path, and empty for a flattened node.
ts_type: &'static str§full_ts_type: &'static str§rust_type: &'static str§kind: FieldKind§accepts: fn(&str) -> boolWhether a JSON text is a value this field holds; for a map, a value of one of its entries.
default: fn() -> Option<String>The JSON its declared default is stored as; None for anything but a
plain field.
resets: Option<bool>Whether it takes its default again once its key is gone, where the
field said; None leaves it to its struct.
Trait Implementations§
Source§impl Clone for FieldExportMeta
impl Clone for FieldExportMeta
impl Copy for FieldExportMeta
Auto Trait Implementations§
impl Freeze for FieldExportMeta
impl RefUnwindSafe for FieldExportMeta
impl Send for FieldExportMeta
impl Sync for FieldExportMeta
impl Unpin for FieldExportMeta
impl UnsafeUnpin for FieldExportMeta
impl UnwindSafe for FieldExportMeta
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