Enum PreferenceType
#[repr(i32)]pub enum PreferenceType {
Unspecified = 0,
PathSelector = 1,
SingleFileInput = 2,
NumberInputGroup = 3,
TextInputGroup = 4,
ToggleGroup = 5,
RadioGroup = 6,
DropdownGroup = 7,
TextArrayInput = 8,
}Variants§
Unspecified = 0
PathSelector = 1
SingleFileInput = 2
NumberInputGroup = 3
TextInputGroup = 4
ToggleGroup = 5
RadioGroup = 6
DropdownGroup = 7
TextArrayInput = 8
Implementations§
§impl PreferenceType
impl PreferenceType
§impl PreferenceType
impl PreferenceType
pub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn from_str_name(value: &str) -> Option<PreferenceType>
pub fn from_str_name(value: &str) -> Option<PreferenceType>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for PreferenceType
impl Clone for PreferenceType
§fn clone(&self) -> PreferenceType
fn clone(&self) -> PreferenceType
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 PreferenceType
impl Debug for PreferenceType
§impl Default for PreferenceType
impl Default for PreferenceType
§fn default() -> PreferenceType
fn default() -> PreferenceType
Returns the “default value” for a type. Read more
§impl Hash for PreferenceType
impl Hash for PreferenceType
§impl Ord for PreferenceType
impl Ord for PreferenceType
§impl PartialEq for PreferenceType
impl PartialEq for PreferenceType
§impl PartialOrd for PreferenceType
impl PartialOrd for PreferenceType
§impl TryFrom<i32> for PreferenceType
impl TryFrom<i32> for PreferenceType
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
§fn try_from(value: i32) -> Result<PreferenceType, UnknownEnumValue>
fn try_from(value: i32) -> Result<PreferenceType, UnknownEnumValue>
Performs the conversion.
impl Copy for PreferenceType
impl Eq for PreferenceType
impl StructuralPartialEq for PreferenceType
Auto Trait Implementations§
impl Freeze for PreferenceType
impl RefUnwindSafe for PreferenceType
impl Send for PreferenceType
impl Sync for PreferenceType
impl Unpin for PreferenceType
impl UnwindSafe for PreferenceType
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)