Struct google_api_proto::google::actions::sdk::v2::ThemeCustomization
source · pub struct ThemeCustomization {
pub background_color: String,
pub primary_color: String,
pub font_family: String,
pub image_corner_style: i32,
pub landscape_background_image: String,
pub portrait_background_image: String,
}
Expand description
Styles applied to cards that are presented to users
Fields§
§background_color: String
Background color of cards. Acts as a fallback if background_image
is
not provided by developers or background_image
doesn’t fit for certain
surfaces.
Example usage: #FAFAFA
primary_color: String
Primary theme color of the Action will be used to set text color of title, action item background color for Actions on Google cards. Example usage: #FAFAFA
font_family: String
The font family that will be used for title of cards. Supported fonts:
- Sans Serif
- Sans Serif Medium
- Sans Serif Bold
- Sans Serif Black
- Sans Serif Condensed
- Sans Serif Condensed Medium
- Serif
- Serif Bold
- Monospace
- Cursive
- Sans Serif Smallcaps
image_corner_style: i32
Border style of foreground image of cards. For example, can be applied on the foreground image of a basic card or carousel card.
landscape_background_image: String
Landscape mode (minimum 1920x1200 pixels).
This should be specified as a reference to the corresponding image in the
resources/images/
directory. Eg: $resources.images.foo
(without the
extension) for image in resources/images/foo.jpg
When working on a project pulled from Console the Google managed url pulled
could be used.
portrait_background_image: String
Portrait mode (minimum 1200x1920 pixels).
This should be specified as a reference to the corresponding image in the
resources/images/
directory. Eg: $resources.images.foo
(without the
extension) for image in resources/images/foo.jpg
When working on a project pulled from Console the Google managed url pulled
could be used.
Implementations§
source§impl ThemeCustomization
impl ThemeCustomization
sourcepub fn image_corner_style(&self) -> ImageCornerStyle
pub fn image_corner_style(&self) -> ImageCornerStyle
Returns the enum value of image_corner_style
, or the default if the field is set to an invalid enum value.
sourcepub fn set_image_corner_style(&mut self, value: ImageCornerStyle)
pub fn set_image_corner_style(&mut self, value: ImageCornerStyle)
Sets image_corner_style
to the provided enum value.
Trait Implementations§
source§impl Clone for ThemeCustomization
impl Clone for ThemeCustomization
source§fn clone(&self) -> ThemeCustomization
fn clone(&self) -> ThemeCustomization
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ThemeCustomization
impl Debug for ThemeCustomization
source§impl Default for ThemeCustomization
impl Default for ThemeCustomization
source§impl Message for ThemeCustomization
impl Message for ThemeCustomization
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 ThemeCustomization
impl PartialEq for ThemeCustomization
source§fn eq(&self, other: &ThemeCustomization) -> bool
fn eq(&self, other: &ThemeCustomization) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ThemeCustomization
Auto Trait Implementations§
impl Freeze for ThemeCustomization
impl RefUnwindSafe for ThemeCustomization
impl Send for ThemeCustomization
impl Sync for ThemeCustomization
impl Unpin for ThemeCustomization
impl UnwindSafe for ThemeCustomization
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