[][src]Struct butane_core::migrations::adb::AColumn

pub struct AColumn { /* fields omitted */ }

Abstract representation of a database column schema.

Implementations

impl AColumn[src]

pub fn new(
    name: impl Into<String>,
    sqltype: DeferredSqlType,
    nullable: bool,
    pk: bool,
    auto: bool,
    default: Option<SqlVal>
) -> Self
[src]

pub fn new_simple(name: impl Into<String>, sqltype: DeferredSqlType) -> Self[src]

Simple column that is non-null, non-auto, non-pk with no default

pub fn name(&self) -> &str[src]

pub fn nullable(&self) -> bool[src]

pub fn is_pk(&self) -> bool[src]

pub fn default(&self) -> &Option<SqlVal>[src]

pub fn sqltype(&self) -> Result<SqlType>[src]

pub fn is_auto(&self) -> bool[src]

Trait Implementations

impl Clone for AColumn[src]

impl Debug for AColumn[src]

impl<'de> Deserialize<'de> for AColumn[src]

impl PartialEq<AColumn> for AColumn[src]

impl Serialize for AColumn[src]

impl StructuralPartialEq for AColumn[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.