pub struct CompositeFieldIr {
pub logical_name: String,
pub db_name: String,
pub field_type: ResolvedFieldType,
pub is_required: bool,
pub is_array: bool,
pub storage_strategy: Option<StorageStrategy>,
pub span: Span,
}Expand description
A single field within a composite type.
Only scalar and enum field types are allowed — no relations or nested composite types.
Fields§
§logical_name: StringThe logical field name as defined in the type block.
db_name: StringThe physical name (from @map or logical_name).
field_type: ResolvedFieldTypeThe resolved field type (Scalar or Enum only).
is_required: boolWhether the field is required (not optional).
is_array: boolWhether the field is an array.
storage_strategy: Option<StorageStrategy>Storage strategy for array fields.
span: SpanSpan of the field declaration.
Trait Implementations§
Source§impl Clone for CompositeFieldIr
impl Clone for CompositeFieldIr
Source§fn clone(&self) -> CompositeFieldIr
fn clone(&self) -> CompositeFieldIr
Returns a duplicate of the value. Read more
1.0.0 · 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 CompositeFieldIr
impl Debug for CompositeFieldIr
Source§impl PartialEq for CompositeFieldIr
impl PartialEq for CompositeFieldIr
impl StructuralPartialEq for CompositeFieldIr
Auto Trait Implementations§
impl Freeze for CompositeFieldIr
impl RefUnwindSafe for CompositeFieldIr
impl Send for CompositeFieldIr
impl Sync for CompositeFieldIr
impl Unpin for CompositeFieldIr
impl UnsafeUnpin for CompositeFieldIr
impl UnwindSafe for CompositeFieldIr
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