Struct seed_datepicker::config::PickerConfigBuilder [−][src]
pub struct PickerConfigBuilder<T> where
T: HasDateConstraints + Default + Clone, { /* fields omitted */ }
Builder for PickerConfig
.
Implementations
impl<T> PickerConfigBuilder<T> where
T: HasDateConstraints + Default + Clone,
[src]
impl<T> PickerConfigBuilder<T> where
T: HasDateConstraints + Default + Clone,
[src]pub fn date_constraints(&mut self, value: T) -> &mut PickerConfigBuilder<T>
[src]
possible constraints to prevent the user from selecting some dates
pub fn initial_date(&mut self, value: NaiveDate) -> &mut PickerConfigBuilder<T>
[src]
initializes the datepicker to this value
pub fn initial_view_type(
&mut self,
value: DialogViewType
) -> &mut PickerConfigBuilder<T>
[src]
&mut self,
value: DialogViewType
) -> &mut PickerConfigBuilder<T>
initializes the view type to this value
pub fn selection_type(
&mut self,
value: DialogViewType
) -> &mut PickerConfigBuilder<T>
[src]
&mut self,
value: DialogViewType
) -> &mut PickerConfigBuilder<T>
selection type, to make it possible to select for example only a year, or only a month.
pub fn initially_opened(&mut self, value: bool) -> &mut PickerConfigBuilder<T>
[src]
whether the dialog should be immediatelly opened after initalization
pub fn month_title_format<VALUE>(
&mut self,
value: VALUE
) -> &mut PickerConfigBuilder<T> where
VALUE: Into<String>,
[src]
&mut self,
value: VALUE
) -> &mut PickerConfigBuilder<T> where
VALUE: Into<String>,
chrono formatting string for the title of the month
pub fn build(&self) -> Result<PickerConfig<T>, PickerConfigBuilderError>
[src]
Trait Implementations
impl<T> Clone for PickerConfigBuilder<T> where
T: Clone + HasDateConstraints + Default,
[src]
impl<T> Clone for PickerConfigBuilder<T> where
T: Clone + HasDateConstraints + Default,
[src]pub fn clone(&self) -> PickerConfigBuilder<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Default for PickerConfigBuilder<T> where
T: HasDateConstraints + Default + Clone,
[src]
impl<T> Default for PickerConfigBuilder<T> where
T: HasDateConstraints + Default + Clone,
[src]pub fn default() -> PickerConfigBuilder<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for PickerConfigBuilder<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for PickerConfigBuilder<T> where
T: RefUnwindSafe,
impl<T> Send for PickerConfigBuilder<T> where
T: Send,
impl<T> Send for PickerConfigBuilder<T> where
T: Send,
impl<T> Sync for PickerConfigBuilder<T> where
T: Sync,
impl<T> Sync for PickerConfigBuilder<T> where
T: Sync,
impl<T> Unpin for PickerConfigBuilder<T> where
T: Unpin,
impl<T> Unpin for PickerConfigBuilder<T> where
T: Unpin,
impl<T> UnwindSafe for PickerConfigBuilder<T> where
T: UnwindSafe,
impl<T> UnwindSafe for PickerConfigBuilder<T> where
T: UnwindSafe,