pub struct Table {
pub name: String,
pub noun: Option<Compound>,
pub comment: Option<String>,
pub columns: IndexMap<String, Column>,
pub pk: Vec<String>,
pub indexes: Vec<Index>,
pub foreign_keys: Vec<ForeignKey>,
pub reverses: Vec<Reverse>,
pub origin: Origin,
pub span: Span,
}Fields§
§name: String最終テーブル名。
noun: Option<Compound>由来した名詞。associate が生成したテーブルでは None。
comment: Option<String>§columns: IndexMap<String, Column>§pk: Vec<String>§indexes: Vec<Index>§foreign_keys: Vec<ForeignKey>§reverses: Vec<Reverse>§origin: Origin§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnsafeUnpin for Table
impl UnwindSafe for Table
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