pub enum Type {
Float,
Integer,
Text,
Date,
Decimal,
Bool,
Enum,
Duration,
DateTime,
Optional(OptionalType),
}
Variants§
Implementations§
Source§impl Type
impl Type
pub const fn to_optional(self) -> Self
pub fn is_type(&self, tp: Self) -> bool
pub fn is_float(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_text(&self) -> bool
pub fn is_date(&self) -> bool
pub fn is_decimal(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_enum(&self) -> bool
pub fn is_duration(&self) -> bool
pub fn is_optional(&self) -> bool
pub fn get_optional(&self) -> Option<OptionalType>
pub fn is_number(&self) -> bool
Trait Implementations§
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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