pub struct DateTimeInputComponent {
pub common: ComponentCommon,
pub label: Option<DynamicString>,
pub value: DynamicString,
pub enable_date: Option<bool>,
pub enable_time: Option<bool>,
pub min: Option<DynamicString>,
pub max: Option<DynamicString>,
pub checkable: Option<Checkable>,
}Expand description
日期时间输入组件
Fields§
§common: ComponentCommon§label: Option<DynamicString>输入框标签
value: DynamicString当前值(ISO 8601 格式)
enable_date: Option<bool>是否启用日期选择
enable_time: Option<bool>是否启用时间选择
min: Option<DynamicString>最小日期时间
max: Option<DynamicString>最大日期时间
checkable: Option<Checkable>验证规则
Trait Implementations§
Source§impl Clone for DateTimeInputComponent
impl Clone for DateTimeInputComponent
Source§fn clone(&self) -> DateTimeInputComponent
fn clone(&self) -> DateTimeInputComponent
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 DateTimeInputComponent
impl Debug for DateTimeInputComponent
Source§impl<'de> Deserialize<'de> for DateTimeInputComponent
impl<'de> Deserialize<'de> for DateTimeInputComponent
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 DateTimeInputComponent
impl PartialEq for DateTimeInputComponent
Source§impl Serialize for DateTimeInputComponent
impl Serialize for DateTimeInputComponent
impl StructuralPartialEq for DateTimeInputComponent
Auto Trait Implementations§
impl Freeze for DateTimeInputComponent
impl RefUnwindSafe for DateTimeInputComponent
impl Send for DateTimeInputComponent
impl Sync for DateTimeInputComponent
impl Unpin for DateTimeInputComponent
impl UnsafeUnpin for DateTimeInputComponent
impl UnwindSafe for DateTimeInputComponent
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