pub struct Field {Show 18 fields
pub id: FieldId,
pub table_id: TableId,
pub name: String,
pub display_name: String,
pub database_type: String,
pub base_type: String,
pub semantic_type: Option<String>,
pub description: Option<String>,
pub active: bool,
pub position: i32,
pub is_pk: bool,
pub fk_target_field_id: Option<FieldId>,
pub visibility_type: Option<String>,
pub fingerprint: Option<Value>,
pub has_field_values: Option<String>,
pub settings: Option<Value>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
Represents a database field with full metadata
Fields§
§id: FieldId
Field ID
table_id: TableId
Table ID this field belongs to
name: String
Field name in the database
display_name: String
Display name for UI
database_type: String
Database type (e.g., “VARCHAR(255)”, “INTEGER”)
base_type: String
Metabase base type (e.g., “type/Text”, “type/Integer”)
semantic_type: Option<String>
Semantic type (e.g., “type/Email”, “type/Category”)
description: Option<String>
Field description
active: bool
Whether this field is active
position: i32
Position in the table
is_pk: bool
Whether this is a primary key
fk_target_field_id: Option<FieldId>
Foreign key target field ID
visibility_type: Option<String>
Visibility type
fingerprint: Option<Value>
Field fingerprint (contains statistics about the field)
has_field_values: Option<String>
Whether field values should be cached
settings: Option<Value>
Settings for this field
created_at: Option<DateTime<Utc>>
When the field was created
updated_at: Option<DateTime<Utc>>
When the field was last updated
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Field
impl<'de> Deserialize<'de> for Field
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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