pub struct FieldMetadata {
pub id: FieldId,
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 is_pk: bool,
pub fk_target_field_id: Option<FieldId>,
pub position: i32,
pub active: bool,
}Expand description
Field metadata
Fields§
§id: FieldIdField ID
name: StringField name
display_name: StringDisplay name
database_type: StringDatabase type
base_type: StringBase type (Metabase type)
semantic_type: Option<String>Semantic type
description: Option<String>Field description
is_pk: boolWhether this is a primary key
fk_target_field_id: Option<FieldId>Foreign key target field ID
position: i32Field position in the table
active: boolWhether the field is active
Trait Implementations§
Source§impl Clone for FieldMetadata
impl Clone for FieldMetadata
Source§fn clone(&self) -> FieldMetadata
fn clone(&self) -> FieldMetadata
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 FieldMetadata
impl Debug for FieldMetadata
Source§impl<'de> Deserialize<'de> for FieldMetadata
impl<'de> Deserialize<'de> for FieldMetadata
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 FieldMetadata
impl RefUnwindSafe for FieldMetadata
impl Send for FieldMetadata
impl Sync for FieldMetadata
impl Unpin for FieldMetadata
impl UnwindSafe for FieldMetadata
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