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§fn default() -> SelectionItem
fn default() -> 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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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