#[repr(C)]pub struct ComponentEnumVariant {
pub name: AzString,
pub description: AzString,
pub fields: ComponentDataFieldVec,
}Expand description
A single variant in a component enum model.
Fields§
§name: AzStringVariant name, e.g. “Admin”, “Editor”, “Viewer”
description: AzStringHuman-readable description for this variant
fields: ComponentDataFieldVecOptional associated fields for this variant
Trait Implementations§
Source§impl Clone for ComponentEnumVariant
impl Clone for ComponentEnumVariant
Source§fn clone(&self) -> ComponentEnumVariant
fn clone(&self) -> ComponentEnumVariant
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 ComponentEnumVariant
impl Debug for ComponentEnumVariant
Source§impl FromIterator<ComponentEnumVariant> for ComponentEnumVariantVec
impl FromIterator<ComponentEnumVariant> for ComponentEnumVariantVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ComponentEnumVariant>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ComponentEnumVariant>,
Creates a value from an iterator. Read more
Source§impl PartialEq for ComponentEnumVariant
impl PartialEq for ComponentEnumVariant
Source§fn eq(&self, other: &ComponentEnumVariant) -> bool
fn eq(&self, other: &ComponentEnumVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComponentEnumVariant
Auto Trait Implementations§
impl Freeze for ComponentEnumVariant
impl RefUnwindSafe for ComponentEnumVariant
impl Send for ComponentEnumVariant
impl Sync for ComponentEnumVariant
impl Unpin for ComponentEnumVariant
impl UnsafeUnpin for ComponentEnumVariant
impl UnwindSafe for ComponentEnumVariant
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