pub struct DatabaseField {Show 15 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 active: bool,
pub description: Option<String>,
pub is_pk: bool,
pub fk_target_field_id: Option<FieldId>,
pub position: i32,
pub visibility_type: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
}
Expand description
Represents a field in a database table
Fields§
§id: FieldId
Unique identifier for the field
table_id: TableId
Table ID this field belongs to
name: String
Field name
display_name: String
Display name for the field
database_type: String
Database-specific type
base_type: String
Base type (e.g., “type/Text”, “type/Integer”)
semantic_type: Option<String>
Semantic type (e.g., “type/Email”, “type/URL”)
active: bool
Whether this field is active
description: Option<String>
Field description
is_pk: bool
Whether this is a primary key
fk_target_field_id: Option<FieldId>
Foreign key target field ID
position: i32
Field position in the table
visibility_type: Option<String>
Visibility type
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 Clone for DatabaseField
impl Clone for DatabaseField
Source§fn clone(&self) -> DatabaseField
fn clone(&self) -> DatabaseField
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 DatabaseField
impl Debug for DatabaseField
Source§impl<'de> Deserialize<'de> for DatabaseField
impl<'de> Deserialize<'de> for DatabaseField
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
Source§impl PartialEq for DatabaseField
impl PartialEq for DatabaseField
Source§impl Serialize for DatabaseField
impl Serialize for DatabaseField
impl StructuralPartialEq for DatabaseField
Auto Trait Implementations§
impl Freeze for DatabaseField
impl RefUnwindSafe for DatabaseField
impl Send for DatabaseField
impl Sync for DatabaseField
impl Unpin for DatabaseField
impl UnwindSafe for DatabaseField
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