pub struct UserOption {
pub label: String,
pub value: UserOptionType,
pub short_label: String,
}Fields§
§label: String§value: UserOptionType§short_label: StringImplementations§
Source§impl UserOption
impl UserOption
pub fn new( label: &str, option_type: UserOptionType, short_label: &str, ) -> UserOption
pub fn empty() -> UserOption
pub fn ok() -> UserOption
pub fn cancel() -> UserOption
pub fn yes() -> UserOption
pub fn no() -> UserOption
Trait Implementations§
Source§impl Clone for UserOption
impl Clone for UserOption
Source§fn clone(&self) -> UserOption
fn clone(&self) -> UserOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserOption
impl Debug for UserOption
Source§impl<'a> From<&'a UserOption> for UserOption
impl<'a> From<&'a UserOption> for UserOption
Source§fn from(uo: &UserOption) -> Self
fn from(uo: &UserOption) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UserOption
impl PartialEq for UserOption
impl StructuralPartialEq for UserOption
Auto Trait Implementations§
impl Freeze for UserOption
impl RefUnwindSafe for UserOption
impl Send for UserOption
impl Sync for UserOption
impl Unpin for UserOption
impl UnwindSafe for UserOption
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
Mutably borrows from an owned value. Read more