pub struct PickerConfigBuilder<T>{ /* private fields */ }Expand description
Builder for PickerConfig.
Implementations§
Source§impl<T> PickerConfigBuilder<T>
 
impl<T> PickerConfigBuilder<T>
Sourcepub fn date_constraints(&mut self, value: T) -> &mut PickerConfigBuilder<T>
 
pub fn date_constraints(&mut self, value: T) -> &mut PickerConfigBuilder<T>
possible constraints to prevent the user from selecting some dates
Sourcepub fn initial_date(&mut self, value: NaiveDate) -> &mut PickerConfigBuilder<T>
 
pub fn initial_date(&mut self, value: NaiveDate) -> &mut PickerConfigBuilder<T>
initializes the datepicker to this value
Sourcepub fn initial_view_type(
    &mut self,
    value: DialogViewType,
) -> &mut PickerConfigBuilder<T>
 
pub fn initial_view_type( &mut self, value: DialogViewType, ) -> &mut PickerConfigBuilder<T>
initializes the view type to this value
Sourcepub fn selection_type(
    &mut self,
    value: DialogViewType,
) -> &mut PickerConfigBuilder<T>
 
pub fn selection_type( &mut self, value: DialogViewType, ) -> &mut PickerConfigBuilder<T>
selection type, to make it possible to select for example only a year, or only a month.
Sourcepub fn initially_opened(&mut self, value: bool) -> &mut PickerConfigBuilder<T>
 
pub fn initially_opened(&mut self, value: bool) -> &mut PickerConfigBuilder<T>
whether the dialog should be immediatelly opened after initalization
Sourcepub fn month_title_format<VALUE>(
    &mut self,
    value: VALUE,
) -> &mut PickerConfigBuilder<T>
 
pub fn month_title_format<VALUE>( &mut self, value: VALUE, ) -> &mut PickerConfigBuilder<T>
chrono formatting string for the title of the month
Sourcepub fn build(&self) -> Result<PickerConfig<T>, PickerConfigBuilderError>
 
pub fn build(&self) -> Result<PickerConfig<T>, PickerConfigBuilderError>
Trait Implementations§
Source§impl<T> Clone for PickerConfigBuilder<T>
 
impl<T> Clone for PickerConfigBuilder<T>
Source§fn clone(&self) -> PickerConfigBuilder<T>
 
fn clone(&self) -> PickerConfigBuilder<T>
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<T> Default for PickerConfigBuilder<T>
 
impl<T> Default for PickerConfigBuilder<T>
Source§fn default() -> PickerConfigBuilder<T>
 
fn default() -> PickerConfigBuilder<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for PickerConfigBuilder<T>where
    T: Freeze,
impl<T> RefUnwindSafe for PickerConfigBuilder<T>where
    T: RefUnwindSafe,
impl<T> Send for PickerConfigBuilder<T>where
    T: Send,
impl<T> Sync for PickerConfigBuilder<T>where
    T: Sync,
impl<T> Unpin for PickerConfigBuilder<T>where
    T: Unpin,
impl<T> UnwindSafe for PickerConfigBuilder<T>where
    T: UnwindSafe,
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