pub struct AddonChoice {
pub value: &'static str,
pub label: &'static str,
}Expand description
One option a user can pick.
Fields§
§value: &'static strWhat gets stored in the binding.
label: &'static strWhat the user reads.
Trait Implementations§
Source§impl Clone for AddonChoice
impl Clone for AddonChoice
Source§fn clone(&self) -> AddonChoice
fn clone(&self) -> AddonChoice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddonChoice
impl Debug for AddonChoice
Source§impl PartialEq for AddonChoice
impl PartialEq for AddonChoice
Source§fn eq(&self, other: &AddonChoice) -> bool
fn eq(&self, other: &AddonChoice) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AddonChoice
impl Eq for AddonChoice
impl StructuralPartialEq for AddonChoice
Auto Trait Implementations§
impl Freeze for AddonChoice
impl RefUnwindSafe for AddonChoice
impl Send for AddonChoice
impl Sync for AddonChoice
impl Unpin for AddonChoice
impl UnsafeUnpin for AddonChoice
impl UnwindSafe for AddonChoice
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