pub struct Table {
pub name: String,
pub noun: Option<Compound>,
pub singular: Option<String>,
pub plural: Option<String>,
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>由来した名詞。名前の組み立てに使う内部表現。
singular: Option<String>単数形。ORM のモデル名などに使う。
plural: Option<String>複数形。
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