Enum PreferenceTypes
#[repr(i32)]pub enum PreferenceTypes {
DirectoryGroup = 0,
EditText = 1,
FilePicker = 2,
CheckboxGroup = 3,
ThemeSelector = 4,
Extensions = 5,
ButtonGroup = 6,
ProgressBar = 7,
TextField = 8,
InfoField = 9,
Dropdown = 10,
}Variants§
DirectoryGroup = 0
EditText = 1
FilePicker = 2
CheckboxGroup = 3
ThemeSelector = 4
Extensions = 5
ButtonGroup = 6
ProgressBar = 7
TextField = 8
InfoField = 9
Dropdown = 10
Implementations§
§impl PreferenceTypes
impl PreferenceTypes
§impl PreferenceTypes
impl PreferenceTypes
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<PreferenceTypes>
pub fn from_str_name(value: &str) -> Option<PreferenceTypes>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl Clone for PreferenceTypes
impl Clone for PreferenceTypes
§fn clone(&self) -> PreferenceTypes
fn clone(&self) -> PreferenceTypes
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 PreferenceTypes
impl Debug for PreferenceTypes
§impl Default for PreferenceTypes
impl Default for PreferenceTypes
§fn default() -> PreferenceTypes
fn default() -> PreferenceTypes
Returns the “default value” for a type. Read more
§impl Hash for PreferenceTypes
impl Hash for PreferenceTypes
§impl Ord for PreferenceTypes
impl Ord for PreferenceTypes
§impl PartialEq for PreferenceTypes
impl PartialEq for PreferenceTypes
§impl PartialOrd for PreferenceTypes
impl PartialOrd for PreferenceTypes
§impl TryFrom<i32> for PreferenceTypes
impl TryFrom<i32> for PreferenceTypes
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
§fn try_from(value: i32) -> Result<PreferenceTypes, UnknownEnumValue>
fn try_from(value: i32) -> Result<PreferenceTypes, UnknownEnumValue>
Performs the conversion.
impl Copy for PreferenceTypes
impl Eq for PreferenceTypes
impl StructuralPartialEq for PreferenceTypes
Auto Trait Implementations§
impl Freeze for PreferenceTypes
impl RefUnwindSafe for PreferenceTypes
impl Send for PreferenceTypes
impl Sync for PreferenceTypes
impl Unpin for PreferenceTypes
impl UnwindSafe for PreferenceTypes
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)