Struct google_api_proto::google::apps::card::v1::MaterialIcon
source · pub struct MaterialIcon {
pub name: String,
pub fill: bool,
pub weight: i32,
pub grade: i32,
}
Expand description
A Google Material Icon, which includes over 2500+ options.
For example, to display a checkbox icon with customized weight and grade, write the following:
{
"name": "check_box",
"fill": true,
"weight": 300,
"grade": -25
}
Fields§
§name: String
The icon name defined in the Google Material
Icon, for example, check_box
. Any
invalid names are abandoned and replaced with empty string and
results in the icon failing to render.
fill: bool
Whether the icon renders as filled. Default value is false.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
weight: i32
The stroke weight of the icon. Choose from {100, 200, 300, 400, 500, 600, 700}. If absent, default value is 400. If any other value is specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
grade: i32
Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, the default value is used.
To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.
Trait Implementations§
source§impl Clone for MaterialIcon
impl Clone for MaterialIcon
source§fn clone(&self) -> MaterialIcon
fn clone(&self) -> MaterialIcon
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MaterialIcon
impl Debug for MaterialIcon
source§impl Default for MaterialIcon
impl Default for MaterialIcon
source§impl Message for MaterialIcon
impl Message for MaterialIcon
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for MaterialIcon
impl PartialEq for MaterialIcon
source§fn eq(&self, other: &MaterialIcon) -> bool
fn eq(&self, other: &MaterialIcon) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MaterialIcon
Auto Trait Implementations§
impl Freeze for MaterialIcon
impl RefUnwindSafe for MaterialIcon
impl Send for MaterialIcon
impl Sync for MaterialIcon
impl Unpin for MaterialIcon
impl UnwindSafe for MaterialIcon
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request