Struct sea_schema::sqlite::def::ColumnInfo
source · [−]pub struct ColumnInfo {
pub cid: i32,
pub name: String,
pub type: Type,
pub not_null: bool,
pub default_value: DefaultType,
pub primary_key: bool,
}
Available on crate features
sqlite
and def
only.Expand description
An SQLite column definition
Fields
cid: i32
name: String
type: Type
not_null: bool
default_value: DefaultType
primary_key: bool
Implementations
sourceimpl ColumnInfo
impl ColumnInfo
pub fn to_column_def(row: &SqliteRow) -> Result<ColumnInfo, ParseIntError>
Trait Implementations
sourceimpl Clone for ColumnInfo
impl Clone for ColumnInfo
sourcefn clone(&self) -> ColumnInfo
fn clone(&self) -> ColumnInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ColumnInfo
impl Debug for ColumnInfo
sourceimpl PartialEq<ColumnInfo> for ColumnInfo
impl PartialEq<ColumnInfo> for ColumnInfo
sourcefn eq(&self, other: &ColumnInfo) -> bool
fn eq(&self, other: &ColumnInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ColumnInfo) -> bool
fn ne(&self, other: &ColumnInfo) -> bool
This method tests for !=
.
impl StructuralPartialEq for ColumnInfo
Auto Trait Implementations
impl RefUnwindSafe for ColumnInfo
impl Send for ColumnInfo
impl Sync for ColumnInfo
impl Unpin for ColumnInfo
impl UnwindSafe for ColumnInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more