pub struct Noun {
pub id: Name,
pub singular: Option<Name>,
pub plural: Option<Name>,
pub short: Option<Name>,
pub comment: Option<Spanned<String>>,
}Fields§
§id: Nameソースが名詞を指す名前。table や belongs_to が書くのはこれ。
出力には出ない。省略された語形の種になるだけ。
singular: Option<Name>省略時は識別子。
plural: Option<Name>省略時は単数形の規則変化。
short: Option<Name>名前を詰めたいときの形。省略時は単数形。
comment: Option<Spanned<String>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Noun
impl RefUnwindSafe for Noun
impl Send for Noun
impl Sync for Noun
impl Unpin for Noun
impl UnsafeUnpin for Noun
impl UnwindSafe for Noun
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