Struct seed_datepicker::config::PickerConfig
source · [−]pub struct PickerConfig<T> where
T: HasDateConstraints + Default + Clone, { /* private fields */ }
Expand description
Configuration for the datepicker.
Implementations
sourceimpl<T> PickerConfig<T> where
T: HasDateConstraints + Default + Clone,
impl<T> PickerConfig<T> where
T: HasDateConstraints + Default + Clone,
pub fn guess_allowed_year_month(&self) -> NaiveDate
sourceimpl<T> PickerConfig<T> where
T: HasDateConstraints + Default + Clone,
impl<T> PickerConfig<T> where
T: HasDateConstraints + Default + Clone,
pub fn initial_date(&self) -> &Option<NaiveDate>
pub fn initial_view_type(&self) -> &DialogViewType
pub fn selection_type(&self) -> &DialogViewType
pub fn initially_opened(&self) -> &bool
pub fn month_title_format(&self) -> &String
Trait Implementations
sourceimpl<T> Debug for PickerConfig<T> where
T: Debug + HasDateConstraints + Default + Clone,
impl<T> Debug for PickerConfig<T> where
T: Debug + HasDateConstraints + Default + Clone,
sourceimpl<T> Default for PickerConfig<T> where
T: Default + HasDateConstraints + Clone,
impl<T> Default for PickerConfig<T> where
T: Default + HasDateConstraints + Clone,
sourcefn default() -> PickerConfig<T>
fn default() -> PickerConfig<T>
Returns the “default value” for a type. Read more
sourceimpl<T> HasDateConstraints for PickerConfig<T> where
T: HasDateConstraints + Default + Clone,
impl<T> HasDateConstraints for PickerConfig<T> where
T: HasDateConstraints + Default + Clone,
sourcefn is_day_forbidden(&self, date: &NaiveDate) -> bool
fn is_day_forbidden(&self, date: &NaiveDate) -> bool
Returns true if the given date is forbidden.
sourcefn is_month_forbidden(&self, year_month_info: &NaiveDate) -> bool
fn is_month_forbidden(&self, year_month_info: &NaiveDate) -> bool
Returns true if the entire month described by year_month_info is forbidden.
sourcefn is_year_forbidden(&self, year: i32) -> bool
fn is_year_forbidden(&self, year: i32) -> bool
Returns true if the entire given year is forbidden.
sourcefn is_year_group_forbidden(&self, year: i32) -> bool
fn is_year_group_forbidden(&self, year: i32) -> bool
Returns true if the entire group of years including the given year is forbidden. A group of years are inclusive intervals [1980, 1999], [2000, 2019], [2020, 2039], … Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for PickerConfig<T> where
T: RefUnwindSafe,
impl<T> Send for PickerConfig<T> where
T: Send,
impl<T> Sync for PickerConfig<T> where
T: Sync,
impl<T> Unpin for PickerConfig<T> where
T: Unpin,
impl<T> UnwindSafe for PickerConfig<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more