pub struct ColumnSnapshot {Show 14 fields
pub name: String,
pub renamed_from: Option<String>,
pub sql_type: SqlServerType,
pub nullable: bool,
pub primary_key: bool,
pub identity: Option<IdentityMetadata>,
pub default_sql: Option<String>,
pub computed_sql: Option<String>,
pub rowversion: bool,
pub insertable: bool,
pub updatable: bool,
pub max_length: Option<u32>,
pub precision: Option<u8>,
pub scale: Option<u8>,
}Expand description
Snapshot of a table column, aligned with the code-first metadata already
defined in sql-orm-core.
Fields§
§name: String§renamed_from: Option<String>§sql_type: SqlServerType§nullable: bool§primary_key: bool§identity: Option<IdentityMetadata>§default_sql: Option<String>§computed_sql: Option<String>§rowversion: bool§insertable: bool§updatable: bool§max_length: Option<u32>§precision: Option<u8>§scale: Option<u8>Implementations§
Source§impl ColumnSnapshot
impl ColumnSnapshot
pub fn new( name: impl Into<String>, sql_type: SqlServerType, nullable: bool, primary_key: bool, identity: Option<IdentityMetadata>, default_sql: Option<String>, computed_sql: Option<String>, rowversion: bool, insertable: bool, updatable: bool, max_length: Option<u32>, precision: Option<u8>, scale: Option<u8>, ) -> Self
pub fn with_renamed_from(self, renamed_from: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ColumnSnapshot
impl Clone for ColumnSnapshot
Source§fn clone(&self) -> ColumnSnapshot
fn clone(&self) -> ColumnSnapshot
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 ColumnSnapshot
impl Debug for ColumnSnapshot
Source§impl<'de> Deserialize<'de> for ColumnSnapshot
impl<'de> Deserialize<'de> for ColumnSnapshot
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<&ColumnMetadata> for ColumnSnapshot
impl From<&ColumnMetadata> for ColumnSnapshot
Source§fn from(column: &ColumnMetadata) -> Self
fn from(column: &ColumnMetadata) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ColumnSnapshot
impl PartialEq for ColumnSnapshot
Source§fn eq(&self, other: &ColumnSnapshot) -> bool
fn eq(&self, other: &ColumnSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ColumnSnapshot
impl Serialize for ColumnSnapshot
impl Eq for ColumnSnapshot
impl StructuralPartialEq for ColumnSnapshot
Auto Trait Implementations§
impl Freeze for ColumnSnapshot
impl RefUnwindSafe for ColumnSnapshot
impl Send for ColumnSnapshot
impl Sync for ColumnSnapshot
impl Unpin for ColumnSnapshot
impl UnsafeUnpin for ColumnSnapshot
impl UnwindSafe for ColumnSnapshot
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