pub struct Relation {
pub kind: RelationKind,
pub target: Name,
pub fk: Option<Spanned<String>>,
pub alias: Option<Spanned<Value>>,
pub via: Option<Spanned<String>>,
pub comment: Option<Spanned<String>>,
}Fields§
§kind: RelationKind§target: Name§fk: Option<Spanned<String>>FK列名。belongs_to 系のみ。
alias: Option<Spanned<Value>>この側の関連名。文字列か noun(...)。
via: Option<Spanned<String>>対応するFK列名。has_many 系のみ。
comment: Option<Spanned<String>>FK列のコメント。belongs_to 系のみ。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnsafeUnpin for Relation
impl UnwindSafe for Relation
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