pub struct FieldResult<FID>where
FID: EzCptIds,{ /* private fields */ }Expand description
A type wrapping a form field and its value.
Implementations§
Source§impl<FID> FieldResult<FID>where
FID: EzCptIds,
impl<FID> FieldResult<FID>where
FID: EzCptIds,
Sourcepub fn as_datetime(&self) -> Option<DateTime<Utc>>
pub fn as_datetime(&self) -> Option<DateTime<Utc>>
Try to return this field result as a date and time value.
Trait Implementations§
Source§impl<FID> Debug for FieldResult<FID>
impl<FID> Debug for FieldResult<FID>
Source§impl<FID> From<(FormField<FID>, FormFieldValue)> for FieldResult<FID>where
FID: EzCptIds,
impl<FID> From<(FormField<FID>, FormFieldValue)> for FieldResult<FID>where
FID: EzCptIds,
Source§fn from(value: (FormField<FID>, FormFieldValue)) -> Self
fn from(value: (FormField<FID>, FormFieldValue)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<FID> Freeze for FieldResult<FID>
impl<FID> RefUnwindSafe for FieldResult<FID>where
FormField<FID>: RefUnwindSafe,
impl<FID> Send for FieldResult<FID>
impl<FID> Sync for FieldResult<FID>
impl<FID> Unpin for FieldResult<FID>
impl<FID> UnsafeUnpin for FieldResult<FID>where
FormField<FID>: UnsafeUnpin,
impl<FID> UnwindSafe for FieldResult<FID>where
FormField<FID>: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more