Struct DateFieldProps
pub struct DateFieldProps {
pub value: Bound<String>,
pub at: Option<String>,
pub label: Option<String>,
pub optional: bool,
pub compact: bool,
pub time: Vec<Box<dyn Widget>>,
pub change: Event,
}Expand description
A day, shown as the person reads a day (with the time it is due at) and picked from a
calendar that opens over it. A date that may be empty can be cleared, and the time it is due
at is picked in the same popover, in the time slot.
Fields§
§value: Bound<String>The day, as the moment a component binds (its ISO text), and where a picked day goes.
at: Option<String>The time of day the day is due at, when its type pairs one with it (9:00): what the
chip says after the day. The field picks it in its time slot; it only says it here.
label: Option<String>Its spoken name: what the date is for.
optional: boolThe date may be cleared: the calendar offers “Clear date”.
compact: boolThe field stands beside the entry that tells its day (a moment’s field, whose hour the entry types): the chip shows the calendar icon alone, opening the calendar and the time.
time: Vec<Box<dyn Widget>>The control that picks the time of day the day is due at: ui.TimeField(bind: t.at).
change: EventA day was picked, or the date was cleared: carries the moment, or nothing for a cleared one.
Trait Implementations§
§impl Component for DateFieldProps
impl Component for DateFieldProps
fn describe() -> Description
§fn from_source(source: &mut dyn Source) -> Result<DateFieldProps, Error>
fn from_source(source: &mut dyn Source) -> Result<DateFieldProps, Error>
source gives. Read more§impl Default for DateFieldProps
impl Default for DateFieldProps
§fn default() -> DateFieldProps
fn default() -> DateFieldProps
Auto Trait Implementations§
impl Freeze for DateFieldProps
impl !RefUnwindSafe for DateFieldProps
impl !Send for DateFieldProps
impl !Sync for DateFieldProps
impl Unpin for DateFieldProps
impl UnsafeUnpin for DateFieldProps
impl !UnwindSafe for DateFieldProps
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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