pub struct ColumnMetadata {Show 15 fields
pub rust_field: &'static str,
pub column_name: &'static str,
pub renamed_from: Option<&'static str>,
pub sql_type: SqlServerType,
pub nullable: bool,
pub primary_key: bool,
pub identity: Option<IdentityMetadata>,
pub default_sql: Option<&'static str>,
pub computed_sql: Option<&'static str>,
pub rowversion: bool,
pub insertable: bool,
pub updatable: bool,
pub max_length: Option<u32>,
pub precision: Option<u8>,
pub scale: Option<u8>,
}Expand description
Per-column metadata generated from entity definitions.
Fields§
§rust_field: &'static str§column_name: &'static str§renamed_from: Option<&'static str>§sql_type: SqlServerType§nullable: bool§primary_key: bool§identity: Option<IdentityMetadata>§default_sql: Option<&'static str>§computed_sql: Option<&'static str>§rowversion: bool§insertable: bool§updatable: bool§max_length: Option<u32>§precision: Option<u8>§scale: Option<u8>Implementations§
Source§impl ColumnMetadata
impl ColumnMetadata
pub const fn is_computed(&self) -> bool
Trait Implementations§
Source§impl Clone for ColumnMetadata
impl Clone for ColumnMetadata
Source§fn clone(&self) -> ColumnMetadata
fn clone(&self) -> ColumnMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColumnMetadata
impl Debug for ColumnMetadata
Source§impl PartialEq for ColumnMetadata
impl PartialEq for ColumnMetadata
Source§fn eq(&self, other: &ColumnMetadata) -> bool
fn eq(&self, other: &ColumnMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ColumnMetadata
impl Eq for ColumnMetadata
impl StructuralPartialEq for ColumnMetadata
Auto Trait Implementations§
impl Freeze for ColumnMetadata
impl RefUnwindSafe for ColumnMetadata
impl Send for ColumnMetadata
impl Sync for ColumnMetadata
impl Unpin for ColumnMetadata
impl UnsafeUnpin for ColumnMetadata
impl UnwindSafe for ColumnMetadata
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