pub enum FieldTy {
Primitive(FieldPrimitive),
Embedded(Embedded),
BelongsTo(BelongsTo),
HasMany(HasMany),
HasOne(HasOne),
}Variants§
Implementations§
Source§impl FieldTy
impl FieldTy
pub fn is_primitive(&self) -> bool
pub fn as_primitive(&self) -> Option<&FieldPrimitive>
pub fn expect_primitive(&self) -> &FieldPrimitive
pub fn expect_primitive_mut(&mut self) -> &mut FieldPrimitive
pub fn is_embedded(&self) -> bool
pub fn as_embedded(&self) -> Option<&Embedded>
pub fn expect_embedded(&self) -> &Embedded
pub fn expect_embedded_mut(&mut self) -> &mut Embedded
pub fn is_relation(&self) -> bool
pub fn is_has_n(&self) -> bool
pub fn is_has_many(&self) -> bool
pub fn as_has_many(&self) -> Option<&HasMany>
pub fn expect_has_many(&self) -> &HasMany
pub fn expect_has_many_mut(&mut self) -> &mut HasMany
pub fn as_has_one(&self) -> Option<&HasOne>
pub fn is_has_one(&self) -> bool
pub fn expect_has_one(&self) -> &HasOne
pub fn expect_has_one_mut(&mut self) -> &mut HasOne
pub fn is_belongs_to(&self) -> bool
pub fn as_belongs_to(&self) -> Option<&BelongsTo>
pub fn expect_belongs_to(&self) -> &BelongsTo
pub fn expect_belongs_to_mut(&mut self) -> &mut BelongsTo
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldTy
impl RefUnwindSafe for FieldTy
impl Send for FieldTy
impl Sync for FieldTy
impl Unpin for FieldTy
impl UnwindSafe for FieldTy
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