pub struct JoinColumnDef {
pub table: Option<String>,
pub name: String,
pub data_type: CandidDataTypeKind,
pub nullable: bool,
pub primary_key: bool,
pub foreign_key: Option<CandidForeignKeyDef>,
}Expand description
Serializable column definition for API boundaries.
This type mirrors ColumnDef but uses owned String fields instead
of &'static str, making it suitable for serialization across API boundaries.
Fields§
§table: Option<String>The source table name. Some for join results, None for single-table queries.
name: StringThe name of the column.
data_type: CandidDataTypeKindThe data type of the column.
nullable: boolIndicates if this column can contain NULL values.
primary_key: boolIndicates if this column is part of the primary key.
foreign_key: Option<CandidForeignKeyDef>Foreign key definition, if any.
Trait Implementations§
Source§impl Clone for JoinColumnDef
impl Clone for JoinColumnDef
Source§fn clone(&self) -> JoinColumnDef
fn clone(&self) -> JoinColumnDef
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 JoinColumnDef
impl Debug for JoinColumnDef
Source§impl<'de> Deserialize<'de> for JoinColumnDef
impl<'de> Deserialize<'de> for JoinColumnDef
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 From<ColumnDef> for JoinColumnDef
impl From<ColumnDef> for JoinColumnDef
Source§impl PartialEq for JoinColumnDef
impl PartialEq for JoinColumnDef
Source§impl Serialize for JoinColumnDef
impl Serialize for JoinColumnDef
impl Eq for JoinColumnDef
impl StructuralPartialEq for JoinColumnDef
Auto Trait Implementations§
impl Freeze for JoinColumnDef
impl RefUnwindSafe for JoinColumnDef
impl Send for JoinColumnDef
impl Sync for JoinColumnDef
impl Unpin for JoinColumnDef
impl UnsafeUnpin for JoinColumnDef
impl UnwindSafe for JoinColumnDef
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