pub struct DateTimeField {
pub name: String,
pub label: Option<String>,
pub required: bool,
pub help_text: Option<String>,
pub widget: Widget,
pub initial: Option<Value>,
pub input_formats: Vec<String>,
}Expand description
DateTimeField for date and time input
Fields§
§name: String§label: Option<String>§required: bool§help_text: Option<String>§widget: Widget§initial: Option<Value>§input_formats: Vec<String>Implementations§
Trait Implementations§
Source§impl FormField for DateTimeField
impl FormField for DateTimeField
fn name(&self) -> &str
fn label(&self) -> Option<&str>
fn required(&self) -> bool
fn help_text(&self) -> Option<&str>
fn widget(&self) -> &Widget
fn initial(&self) -> Option<&Value>
fn clean(&self, value: Option<&Value>) -> FieldResult<Value>
Auto Trait Implementations§
impl Freeze for DateTimeField
impl RefUnwindSafe for DateTimeField
impl Send for DateTimeField
impl Sync for DateTimeField
impl Unpin for DateTimeField
impl UnsafeUnpin for DateTimeField
impl UnwindSafe for DateTimeField
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