pub struct Field<T> {
pub name: &'static str,
pub tp: Type,
pub type_name: &'static str,
pub parent_name: &'static str,
pub optional: bool,
pub _p: PhantomData<fn() -> T>,
}Fields§
§name: &'static str§tp: Type§type_name: &'static str§parent_name: &'static str§optional: bool§_p: PhantomData<fn() -> T>Implementations§
Methods from Deref<Target = Type>§
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<T> Copy for Field<T>
impl<T> Eq for Field<T>
Auto Trait Implementations§
impl<T> Freeze for Field<T>
impl<T> RefUnwindSafe for Field<T>
impl<T> Send for Field<T>
impl<T> Sync for Field<T>
impl<T> Unpin for Field<T>
impl<T> UnsafeUnpin for Field<T>
impl<T> UnwindSafe for Field<T>
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