pub struct OperatorGateOption {
pub text: String,
pub semantics: OperatorGateOptionSemantics,
pub selected: bool,
}Expand description
One choice as rendered on screen inside an OperatorGateState.
Fields§
§text: StringThe option’s label exactly as it appears on screen (list-marker and leading whitespace stripped, nothing else altered) – never paraphrased, so an operator reading it sees the same words the CLI rendered.
semantics: OperatorGateOptionSemantics§selected: boolWhether the screen’s own cursor/highlight currently sits on this
option. false means either it is not selected or selection is not
visible on this screen shape – there is no third state, because a
consumer deciding “which option is highlighted right now” only ever
needs to know if THIS one is.
Trait Implementations§
Source§impl Clone for OperatorGateOption
impl Clone for OperatorGateOption
Source§impl Debug for OperatorGateOption
impl Debug for OperatorGateOption
Source§impl<'de> Deserialize<'de> for OperatorGateOption
impl<'de> Deserialize<'de> for OperatorGateOption
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
impl Eq for OperatorGateOption
Source§impl PartialEq for OperatorGateOption
impl PartialEq for OperatorGateOption
Source§impl Serialize for OperatorGateOption
impl Serialize for OperatorGateOption
impl StructuralPartialEq for OperatorGateOption
Auto Trait Implementations§
impl Freeze for OperatorGateOption
impl RefUnwindSafe for OperatorGateOption
impl Send for OperatorGateOption
impl Sync for OperatorGateOption
impl Unpin for OperatorGateOption
impl UnsafeUnpin for OperatorGateOption
impl UnwindSafe for OperatorGateOption
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