pub struct ColumnSnapshot {
pub name: String,
pub data_type: String,
pub nullable: bool,
pub default_value: Option<String>,
pub auto_increment: bool,
}Expand description
Snapshot of a single column
Fields§
§name: StringColumn name
data_type: StringData type (normalized, database-agnostic representation)
nullable: boolWhether column is nullable
default_value: Option<String>Default value (if any)
auto_increment: boolWhether column has auto-increment/sequence
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
impl Eq for ColumnSnapshot
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 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