Enum GateChoiceEmphasis
pub enum GateChoiceEmphasis {
Positive,
Negative,
Neutral,
}Expand description
Rendering hint for a GateChoice.
Variants§
Positive
The affirmative action (e.g. a green/primary button).
Negative
The destructive/refusing action (e.g. a red button).
Neutral
No particular emphasis.
Trait Implementations§
Source§impl Clone for GateChoiceEmphasis
impl Clone for GateChoiceEmphasis
Source§fn clone(&self) -> GateChoiceEmphasis
fn clone(&self) -> GateChoiceEmphasis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GateChoiceEmphasis
impl Debug for GateChoiceEmphasis
Source§impl<'de> Deserialize<'de> for GateChoiceEmphasis
impl<'de> Deserialize<'de> for GateChoiceEmphasis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GateChoiceEmphasis
impl PartialEq for GateChoiceEmphasis
Source§fn eq(&self, other: &GateChoiceEmphasis) -> bool
fn eq(&self, other: &GateChoiceEmphasis) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GateChoiceEmphasis
impl Serialize for GateChoiceEmphasis
impl Copy for GateChoiceEmphasis
impl Eq for GateChoiceEmphasis
impl StructuralPartialEq for GateChoiceEmphasis
Auto Trait Implementations§
impl Freeze for GateChoiceEmphasis
impl RefUnwindSafe for GateChoiceEmphasis
impl Send for GateChoiceEmphasis
impl Sync for GateChoiceEmphasis
impl Unpin for GateChoiceEmphasis
impl UnsafeUnpin for GateChoiceEmphasis
impl UnwindSafe for GateChoiceEmphasis
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