pub struct FiltersPropsBuilder<__query = query, __theme = theme, __metric = metric, __currency = currency> { /* private fields */ }Expand description
Typestate builder for FiltersProps, created by FiltersProps::builder(). build() becomes available once every required property has been set.
Implementations§
Source§impl<__query, __theme, __metric, __currency> FiltersPropsBuilder<__query, __theme, __metric, __currency>
impl<__query, __theme, __metric, __currency> FiltersPropsBuilder<__query, __theme, __metric, __currency>
Sourcepub fn query(
self,
query: Query,
) -> FiltersPropsBuilder<Set, __theme, __metric, __currency>
pub fn query( self, query: Query, ) -> FiltersPropsBuilder<Set, __theme, __metric, __currency>
Sets the query property.
Sourcepub fn theme(
self,
theme: usize,
) -> FiltersPropsBuilder<__query, Set, __metric, __currency>
pub fn theme( self, theme: usize, ) -> FiltersPropsBuilder<__query, Set, __metric, __currency>
Sets the theme property.
Sourcepub fn metric(
self,
metric: Metric,
) -> FiltersPropsBuilder<__query, __theme, Set, __currency>
pub fn metric( self, metric: Metric, ) -> FiltersPropsBuilder<__query, __theme, Set, __currency>
Sets the metric property.
Sourcepub fn currency(
self,
currency: Currency,
) -> FiltersPropsBuilder<__query, __theme, __metric, Set>
pub fn currency( self, currency: Currency, ) -> FiltersPropsBuilder<__query, __theme, __metric, Set>
Sets the currency property.
Sourcepub fn build(self) -> FiltersProps
pub fn build(self) -> FiltersProps
Builds the props struct from the set properties.
Only available once every required property has been set.
#[default] properties that were not set are filled with
Default::default(), or the #[default(expr)] expression.
Auto Trait Implementations§
impl<__query, __theme, __metric, __currency> Freeze for FiltersPropsBuilder<__query, __theme, __metric, __currency>
impl<__query, __theme, __metric, __currency> RefUnwindSafe for FiltersPropsBuilder<__query, __theme, __metric, __currency>
impl<__query, __theme, __metric, __currency> Send for FiltersPropsBuilder<__query, __theme, __metric, __currency>
impl<__query, __theme, __metric, __currency> Sync for FiltersPropsBuilder<__query, __theme, __metric, __currency>
impl<__query, __theme, __metric, __currency> Unpin for FiltersPropsBuilder<__query, __theme, __metric, __currency>
impl<__query, __theme, __metric, __currency> UnsafeUnpin for FiltersPropsBuilder<__query, __theme, __metric, __currency>
impl<__query, __theme, __metric, __currency> UnwindSafe for FiltersPropsBuilder<__query, __theme, __metric, __currency>
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