pub struct MaterialScheme {Show 49 fields
pub primary: String,
pub surface_tint: String,
pub on_primary: String,
pub primary_container: String,
pub on_primary_container: String,
pub secondary: String,
pub on_secondary: String,
pub secondary_container: String,
pub on_secondary_container: String,
pub tertiary: String,
pub on_tertiary: String,
pub tertiary_container: String,
pub on_tertiary_container: String,
pub error: String,
pub on_error: String,
pub error_container: String,
pub on_error_container: String,
pub background: String,
pub on_background: String,
pub surface: String,
pub on_surface: String,
pub surface_variant: String,
pub on_surface_variant: String,
pub outline: String,
pub outline_variant: String,
pub shadow: String,
pub scrim: String,
pub inverse_surface: String,
pub inverse_on_surface: String,
pub inverse_primary: String,
pub primary_fixed: String,
pub on_primary_fixed: String,
pub primary_fixed_dim: String,
pub on_primary_fixed_variant: String,
pub secondary_fixed: String,
pub on_secondary_fixed: String,
pub secondary_fixed_dim: String,
pub on_secondary_fixed_variant: String,
pub tertiary_fixed: String,
pub on_tertiary_fixed: String,
pub tertiary_fixed_dim: String,
pub on_tertiary_fixed_variant: String,
pub surface_dim: String,
pub surface_bright: String,
pub surface_container_lowest: String,
pub surface_container_low: String,
pub surface_container: String,
pub surface_container_high: String,
pub surface_container_highest: String,
}Expand description
Material Design color scheme structure from JSON
Fields§
§primary: String§surface_tint: String§on_primary: String§primary_container: String§on_primary_container: String§secondary: String§on_secondary: String§secondary_container: String§on_secondary_container: String§tertiary: String§on_tertiary: String§tertiary_container: String§on_tertiary_container: String§error: String§on_error: String§error_container: String§on_error_container: String§background: String§on_background: String§surface: String§on_surface: String§surface_variant: String§on_surface_variant: String§outline: String§outline_variant: String§shadow: String§scrim: String§inverse_surface: String§inverse_on_surface: String§inverse_primary: String§primary_fixed: String§on_primary_fixed: String§primary_fixed_dim: String§on_primary_fixed_variant: String§secondary_fixed: String§on_secondary_fixed: String§secondary_fixed_dim: String§on_secondary_fixed_variant: String§tertiary_fixed: String§on_tertiary_fixed: String§tertiary_fixed_dim: String§on_tertiary_fixed_variant: String§surface_dim: String§surface_bright: String§surface_container_lowest: String§surface_container_low: String§surface_container: String§surface_container_high: String§surface_container_highest: StringTrait Implementations§
Source§impl Clone for MaterialScheme
impl Clone for MaterialScheme
Source§fn clone(&self) -> MaterialScheme
fn clone(&self) -> MaterialScheme
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 Debug for MaterialScheme
impl Debug for MaterialScheme
Source§impl<'de> Deserialize<'de> for MaterialScheme
impl<'de> Deserialize<'de> for MaterialScheme
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MaterialScheme
impl RefUnwindSafe for MaterialScheme
impl Send for MaterialScheme
impl Sync for MaterialScheme
impl Unpin for MaterialScheme
impl UnsafeUnpin for MaterialScheme
impl UnwindSafe for MaterialScheme
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.