pub struct VariantSelection {
pub path: FieldPath,
pub enum_name: &'static str,
pub variant_name: &'static str,
}Expand description
Records that a specific enum field has a specific variant selected.
Fields§
§path: FieldPathPath to the enum field from root
enum_name: &'static strName of the enum type (e.g., “MessagePayload”)
variant_name: &'static strName of the selected variant (e.g., “Text”)
Trait Implementations§
Source§impl Clone for VariantSelection
impl Clone for VariantSelection
Source§fn clone(&self) -> VariantSelection
fn clone(&self) -> VariantSelection
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 moreAuto Trait Implementations§
impl Freeze for VariantSelection
impl RefUnwindSafe for VariantSelection
impl Send for VariantSelection
impl Sync for VariantSelection
impl Unpin for VariantSelection
impl UnwindSafe for VariantSelection
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