pub struct FieldSchema {
pub managed: Option<ManagedTimestamp>,
pub default: Option<&'static LiteralDefault>,
pub name: &'static str,
pub value: FieldType,
pub optional: bool,
pub reference: Option<ReferenceSchema>,
}Expand description
One named stored field; type, bounds, optionality and write policy define identity.
Fields§
§managed: Option<ManagedTimestamp>Database-owned insertion/update time policy, never applied during decode.
default: Option<&'static LiteralDefault>Compiled insert-omission policy; no default is applied during decode/update.
name: &'static strStable field identity within its entity.
value: FieldTypeDeclared primitive and its bounds.
optional: boolWhether absence is a stored value, distinct from empty/zero/false.
reference: Option<ReferenceSchema>Present targets must exist; deletion is restricted through a declared index.
Trait Implementations§
Source§impl Clone for FieldSchema
impl Clone for FieldSchema
impl 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 Forget for FieldSchema
impl Freeze for FieldSchema
impl Move 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