#[non_exhaustive]pub struct UpdateThemeDataBuilder { /* private fields */ }Expand description
A builder for UpdateThemeData.
Implementations§
source§impl UpdateThemeDataBuilder
impl UpdateThemeDataBuilder
sourcepub fn values(self, input: ThemeValues) -> Self
pub fn values(self, input: ThemeValues) -> Self
Appends an item to values.
To override the contents of this collection use set_values.
A list of key-value pairs that define the theme's properties.
sourcepub fn set_values(self, input: Option<Vec<ThemeValues>>) -> Self
pub fn set_values(self, input: Option<Vec<ThemeValues>>) -> Self
A list of key-value pairs that define the theme's properties.
sourcepub fn get_values(&self) -> &Option<Vec<ThemeValues>>
pub fn get_values(&self) -> &Option<Vec<ThemeValues>>
A list of key-value pairs that define the theme's properties.
sourcepub fn overrides(self, input: ThemeValues) -> Self
pub fn overrides(self, input: ThemeValues) -> Self
Appends an item to overrides.
To override the contents of this collection use set_overrides.
Describes the properties that can be overriden to customize the theme.
sourcepub fn set_overrides(self, input: Option<Vec<ThemeValues>>) -> Self
pub fn set_overrides(self, input: Option<Vec<ThemeValues>>) -> Self
Describes the properties that can be overriden to customize the theme.
sourcepub fn get_overrides(&self) -> &Option<Vec<ThemeValues>>
pub fn get_overrides(&self) -> &Option<Vec<ThemeValues>>
Describes the properties that can be overriden to customize the theme.
sourcepub fn build(self) -> Result<UpdateThemeData, BuildError>
pub fn build(self) -> Result<UpdateThemeData, BuildError>
Consumes the builder and constructs a UpdateThemeData.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for UpdateThemeDataBuilder
impl Clone for UpdateThemeDataBuilder
source§fn clone(&self) -> UpdateThemeDataBuilder
fn clone(&self) -> UpdateThemeDataBuilder
Returns a copy 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 UpdateThemeDataBuilder
impl Debug for UpdateThemeDataBuilder
source§impl Default for UpdateThemeDataBuilder
impl Default for UpdateThemeDataBuilder
source§fn default() -> UpdateThemeDataBuilder
fn default() -> UpdateThemeDataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for UpdateThemeDataBuilder
impl PartialEq for UpdateThemeDataBuilder
source§fn eq(&self, other: &UpdateThemeDataBuilder) -> bool
fn eq(&self, other: &UpdateThemeDataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UpdateThemeDataBuilder
Auto Trait Implementations§
impl Freeze for UpdateThemeDataBuilder
impl RefUnwindSafe for UpdateThemeDataBuilder
impl Send for UpdateThemeDataBuilder
impl Sync for UpdateThemeDataBuilder
impl Unpin for UpdateThemeDataBuilder
impl UnwindSafe for UpdateThemeDataBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.