pub struct ClassField {
pub name: Ident,
pub ty: TypeSyntax,
pub is_key: bool,
pub presence_condition: Option<(String, String)>,
pub span: SourceSpan,
}Fields§
§name: Ident§ty: TypeSyntax§is_key: bool@key: this field is the class’s natural key (used for import per-row
idempotency, spec/std-library/files.md). At most one per class in v0.
presence_condition: Option<(String, String)>Family B (discriminant-string schemas): <field> <Type> when <disc> == "<lit>"
— this field is present only when the literal-union discriminant field disc
equals lit. (discriminant field name, required literal).
span: SourceSpanTrait Implementations§
Source§impl Clone for ClassField
impl Clone for ClassField
Source§fn clone(&self) -> ClassField
fn clone(&self) -> ClassField
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 moreSource§impl Debug for ClassField
impl Debug for ClassField
impl Eq for ClassField
Source§impl PartialEq for ClassField
impl PartialEq for ClassField
impl StructuralPartialEq for ClassField
Auto Trait Implementations§
impl Freeze for ClassField
impl RefUnwindSafe for ClassField
impl Send for ClassField
impl Sync for ClassField
impl Unpin for ClassField
impl UnsafeUnpin for ClassField
impl UnwindSafe for ClassField
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