pub struct Column {
pub docs: Vec<String>,
pub attrs: AttributeList,
pub nullable: bool,
pub ty: TypeIdent,
pub annotations: Vec<ColumnAnnotation>,
pub foreign_key: Option<PartialForeignKey>,
/* private fields */
}Fields§
§docs: Vec<String>§attrs: AttributeList§nullable: bool§ty: TypeIdent§annotations: Vec<ColumnAnnotation>§foreign_key: Option<PartialForeignKey>Implementations§
Source§impl Column
impl Column
pub fn new( name: ColumnDefName, docs: Vec<String>, attrs: AttributeList, nullable: bool, ty: TypeIdent, annotations: Vec<ColumnAnnotation>, foreign_key: Option<PartialForeignKey>, ) -> Self
Source§impl Column
impl Column
pub fn propagate_annotations(&mut self) -> Vec<TableAnnotation>
pub fn propagate_foreign_key(&mut self) -> Option<ForeignKey>
pub fn clone_for_mixin(&self) -> Column
Trait Implementations§
Source§impl HasDefaultDbName for Column
impl HasDefaultDbName for Column
type Kind = ColumnKind
fn default_db(&self) -> Option<DbIdent<Self::Kind>>
Source§impl IsCompatible for Column
impl IsCompatible for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more