Struct PreferenceUiData
pub struct PreferenceUiData {
pub type: i32,
pub title: String,
pub key: String,
pub description: String,
pub input_type: Option<i32>,
pub single: Option<bool>,
pub items: Vec<CheckboxItem>,
pub default: Option<Struct>,
pub mobile: Option<bool>,
}Fields§
§type: i32§title: String§key: String§description: String§input_type: Option<i32>§single: Option<bool>§items: Vec<CheckboxItem>§default: Option<Struct>§mobile: Option<bool>Implementations§
§impl PreferenceUiData
impl PreferenceUiData
pub fn type(&self) -> PreferenceTypes
pub fn type(&self) -> PreferenceTypes
Returns the enum value of type, or the default if the field is set to an invalid enum value.
pub fn set_type(&mut self, value: PreferenceTypes)
pub fn set_type(&mut self, value: PreferenceTypes)
Sets type to the provided enum value.
pub fn input_type(&self) -> InputType
pub fn input_type(&self) -> InputType
Returns the enum value of input_type, or the default if the field is unset or set to an invalid enum value.
pub fn set_input_type(&mut self, value: InputType)
pub fn set_input_type(&mut self, value: InputType)
Sets input_type to the provided enum value.
Trait Implementations§
§impl Clone for PreferenceUiData
impl Clone for PreferenceUiData
§fn clone(&self) -> PreferenceUiData
fn clone(&self) -> PreferenceUiData
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PreferenceUiData
impl Debug for PreferenceUiData
§impl Default for PreferenceUiData
impl Default for PreferenceUiData
§fn default() -> PreferenceUiData
fn default() -> PreferenceUiData
Returns the “default value” for a type. Read more
§impl Message for PreferenceUiData
impl Message for PreferenceUiData
§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
§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,
Encodes the message with a length-delimiter to a buffer. Read more
§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
§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,
Decodes a length-delimited instance of the message from the buffer.
§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read more§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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.§impl PartialEq for PreferenceUiData
impl PartialEq for PreferenceUiData
impl StructuralPartialEq for PreferenceUiData
Auto Trait Implementations§
impl Freeze for PreferenceUiData
impl RefUnwindSafe for PreferenceUiData
impl Send for PreferenceUiData
impl Sync for PreferenceUiData
impl Unpin for PreferenceUiData
impl UnwindSafe for PreferenceUiData
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)