pub struct DatePickerField {
pub id: Option<String>,
pub label: String,
pub mode: DatePickerMode,
pub default_value: Option<String>,
pub min: Option<String>,
pub max: Option<String>,
pub required: bool,
pub readonly: bool,
pub validation: Option<FormValidation>,
pub conditional_validation: Option<ConditionalValidation>,
}Expand description
Date/time picker field.
Fields§
§id: Option<String>Optional unique identifier.
label: StringField label displayed to the user.
mode: DatePickerModePicker mode (date, time, datetime).
default_value: Option<String>Default value (ISO 8601 format).
min: Option<String>Minimum date/time.
max: Option<String>Maximum date/time.
required: boolWhether the field is required.
readonly: boolWhether the field is read-only.
validation: Option<FormValidation>Validation rules.
conditional_validation: Option<ConditionalValidation>Conditional validation based on another field’s value.
Implementations§
Source§impl DatePickerField
impl DatePickerField
Sourcepub fn with_conditional_validation(self, cv: ConditionalValidation) -> Self
pub fn with_conditional_validation(self, cv: ConditionalValidation) -> Self
Set conditional validation.
Trait Implementations§
Source§impl Clone for DatePickerField
impl Clone for DatePickerField
Source§fn clone(&self) -> DatePickerField
fn clone(&self) -> DatePickerField
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatePickerField
impl Debug for DatePickerField
Source§impl<'de> Deserialize<'de> for DatePickerField
impl<'de> Deserialize<'de> for DatePickerField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DatePickerField
impl PartialEq for DatePickerField
Source§impl Serialize for DatePickerField
impl Serialize for DatePickerField
impl Eq for DatePickerField
impl StructuralPartialEq for DatePickerField
Auto Trait Implementations§
impl Freeze for DatePickerField
impl RefUnwindSafe for DatePickerField
impl Send for DatePickerField
impl Sync for DatePickerField
impl Unpin for DatePickerField
impl UnsafeUnpin for DatePickerField
impl UnwindSafe for DatePickerField
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.