Struct google_api_proto::google::monitoring::dashboard::v1::text::TextStyle
source · pub struct TextStyle {
pub background_color: String,
pub text_color: String,
pub horizontal_alignment: i32,
pub vertical_alignment: i32,
pub padding: i32,
pub font_size: i32,
pub pointer_location: i32,
}
Expand description
Properties that determine how the title and content are styled
Fields§
§background_color: String
The background color as a hex string. “#RRGGBB” or “#RGB”
text_color: String
The text color as a hex string. “#RRGGBB” or “#RGB”
horizontal_alignment: i32
The horizontal alignment of both the title and content
vertical_alignment: i32
The vertical alignment of both the title and content
padding: i32
The amount of padding around the widget
font_size: i32
Font sizes for both the title and content. The title will still be larger relative to the content.
pointer_location: i32
The pointer location for this widget (also sometimes called a “tail”)
Implementations§
source§impl TextStyle
impl TextStyle
sourcepub fn horizontal_alignment(&self) -> HorizontalAlignment
pub fn horizontal_alignment(&self) -> HorizontalAlignment
Returns the enum value of horizontal_alignment
, or the default if the field is set to an invalid enum value.
sourcepub fn set_horizontal_alignment(&mut self, value: HorizontalAlignment)
pub fn set_horizontal_alignment(&mut self, value: HorizontalAlignment)
Sets horizontal_alignment
to the provided enum value.
sourcepub fn vertical_alignment(&self) -> VerticalAlignment
pub fn vertical_alignment(&self) -> VerticalAlignment
Returns the enum value of vertical_alignment
, or the default if the field is set to an invalid enum value.
sourcepub fn set_vertical_alignment(&mut self, value: VerticalAlignment)
pub fn set_vertical_alignment(&mut self, value: VerticalAlignment)
Sets vertical_alignment
to the provided enum value.
sourcepub fn padding(&self) -> PaddingSize
pub fn padding(&self) -> PaddingSize
Returns the enum value of padding
, or the default if the field is set to an invalid enum value.
sourcepub fn set_padding(&mut self, value: PaddingSize)
pub fn set_padding(&mut self, value: PaddingSize)
Sets padding
to the provided enum value.
sourcepub fn font_size(&self) -> FontSize
pub fn font_size(&self) -> FontSize
Returns the enum value of font_size
, or the default if the field is set to an invalid enum value.
sourcepub fn set_font_size(&mut self, value: FontSize)
pub fn set_font_size(&mut self, value: FontSize)
Sets font_size
to the provided enum value.
sourcepub fn pointer_location(&self) -> PointerLocation
pub fn pointer_location(&self) -> PointerLocation
Returns the enum value of pointer_location
, or the default if the field is set to an invalid enum value.
sourcepub fn set_pointer_location(&mut self, value: PointerLocation)
pub fn set_pointer_location(&mut self, value: PointerLocation)
Sets pointer_location
to the provided enum value.
Trait Implementations§
source§impl Message for TextStyle
impl Message for TextStyle
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 TextStyle
impl PartialEq for TextStyle
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnwindSafe for TextStyle
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