pub struct FloatField {
pub name: String,
pub label: Option<String>,
pub required: bool,
pub help_text: Option<String>,
pub widget: Widget,
pub initial: Option<Value>,
pub max_value: Option<f64>,
pub min_value: Option<f64>,
}Expand description
FloatField for floating-point number input
Fields§
§name: String§label: Option<String>§required: bool§help_text: Option<String>§widget: Widget§initial: Option<Value>§max_value: Option<f64>§min_value: Option<f64>Implementations§
Trait Implementations§
Source§impl FormField for FloatField
impl FormField for FloatField
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 FloatField
impl RefUnwindSafe for FloatField
impl Send for FloatField
impl Sync for FloatField
impl Unpin for FloatField
impl UnsafeUnpin for FloatField
impl UnwindSafe for FloatField
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