Struct google_api_proto::google::apps::drive::labels::v2::field::selection_options::choice::DisplayHints
source · pub struct DisplayHints {
pub disabled: bool,
pub hidden_in_search: bool,
pub shown_in_apply: bool,
pub badge_colors: Option<BadgeColors>,
pub dark_badge_colors: Option<BadgeColors>,
pub badge_priority: i64,
}
Expand description
UI display hints for rendering an option.
Fields§
§disabled: bool
Whether the option should be shown in the UI as disabled.
This option should be hidden in the search menu when searching for Drive items.
shown_in_apply: bool
This option should be shown in the apply menu when applying values to a Drive item.
badge_colors: Option<BadgeColors>
The colors to use for the badge. Changed to Google Material colors
based on the chosen properties.badge_config.color
.
dark_badge_colors: Option<BadgeColors>
The dark-mode color to use for the badge. Changed to Google Material
colors based on the chosen properties.badge_config.color
.
badge_priority: i64
The priority of this badge. Used to compare and sort between multiple
badges. A lower number means the badge should be shown first.
When a badging configuration is not present, this will be 0.
Otherwise, this will be set to BadgeConfig.priority_override
or the
default heuristic which prefers creation date of the label, and field
and option priority.
Trait Implementations§
source§impl Clone for DisplayHints
impl Clone for DisplayHints
source§fn clone(&self) -> DisplayHints
fn clone(&self) -> DisplayHints
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DisplayHints
impl Debug for DisplayHints
source§impl Default for DisplayHints
impl Default for DisplayHints
source§impl Message for DisplayHints
impl Message for DisplayHints
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 DisplayHints
impl PartialEq for DisplayHints
source§fn eq(&self, other: &DisplayHints) -> bool
fn eq(&self, other: &DisplayHints) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for DisplayHints
impl StructuralPartialEq for DisplayHints
Auto Trait Implementations§
impl Freeze for DisplayHints
impl RefUnwindSafe for DisplayHints
impl Send for DisplayHints
impl Sync for DisplayHints
impl Unpin for DisplayHints
impl UnwindSafe for DisplayHints
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