Struct google_api_proto::google::apps::card::v1::selection_input::SelectionItem
source · pub struct SelectionItem {
pub text: String,
pub value: String,
pub selected: bool,
pub start_icon_uri: String,
pub bottom_text: String,
}
Expand description
An item that users can select in a selection input, such as a checkbox or switch.
Fields§
§text: String
The text that identifies or describes the item to users.
value: String
The value associated with this item. The client should use this as a form input value.
For details about working with form inputs, see Receive form data.
selected: bool
Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.
start_icon_uri: String
For multiselect menus, the URL for the icon displayed next to
the item’s text
field. Supports PNG and JPEG files. Must be an HTTPS
URL. For example,
<https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
.>
bottom_text: String
For multiselect menus, a text description or label that’s
displayed below the item’s text
field.
Trait Implementations§
source§impl Clone for SelectionItem
impl Clone for SelectionItem
source§fn clone(&self) -> SelectionItem
fn clone(&self) -> SelectionItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SelectionItem
impl Debug for SelectionItem
source§impl Default for SelectionItem
impl Default for SelectionItem
source§impl Message for SelectionItem
impl Message for SelectionItem
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 SelectionItem
impl PartialEq for SelectionItem
source§fn eq(&self, other: &SelectionItem) -> bool
fn eq(&self, other: &SelectionItem) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SelectionItem
Auto Trait Implementations§
impl Freeze for SelectionItem
impl RefUnwindSafe for SelectionItem
impl Send for SelectionItem
impl Sync for SelectionItem
impl Unpin for SelectionItem
impl UnwindSafe for SelectionItem
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