pub struct IrClassField {
pub name: String,
pub ty: IrType,
pub is_key: bool,
pub presence_condition: Option<(String, String)>,
pub span: SourceSpan,
}Fields§
§name: String§ty: IrType§is_key: bool@key: this field is the class’s natural key (import per-row idempotency).
presence_condition: Option<(String, String)>Family B presence condition: (discriminant field name, required literal).
When set, the field is present only when the discriminant equals the literal
(spec/decision-records/discriminated-families-design.md §5.7).
span: SourceSpanTrait Implementations§
Source§impl Clone for IrClassField
impl Clone for IrClassField
Source§fn clone(&self) -> IrClassField
fn clone(&self) -> IrClassField
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 IrClassField
impl Debug for IrClassField
impl Eq for IrClassField
Source§impl PartialEq for IrClassField
impl PartialEq for IrClassField
impl StructuralPartialEq for IrClassField
Auto Trait Implementations§
impl Freeze for IrClassField
impl RefUnwindSafe for IrClassField
impl Send for IrClassField
impl Sync for IrClassField
impl Unpin for IrClassField
impl UnsafeUnpin for IrClassField
impl UnwindSafe for IrClassField
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