pub struct SemanticVariant {
pub id: SymbolId,
pub name: String,
pub serde_name: String,
pub description: String,
pub fields: BTreeMap<SymbolId, SemanticField>,
pub discriminant: Option<isize>,
pub untagged: bool,
pub field_style: FieldStyle,
}Fields§
§id: SymbolId§name: String§serde_name: String§description: String§fields: BTreeMap<SymbolId, SemanticField>Fields ordered deterministically
discriminant: Option<isize>Variant properties
untagged: bool§field_style: FieldStyleTrait Implementations§
Source§impl Clone for SemanticVariant
impl Clone for SemanticVariant
Source§fn clone(&self) -> SemanticVariant
fn clone(&self) -> SemanticVariant
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 moreSource§impl Debug for SemanticVariant
impl Debug for SemanticVariant
Source§impl PartialEq for SemanticVariant
impl PartialEq for SemanticVariant
impl Eq for SemanticVariant
impl StructuralPartialEq for SemanticVariant
Auto Trait Implementations§
impl Freeze for SemanticVariant
impl RefUnwindSafe for SemanticVariant
impl Send for SemanticVariant
impl Sync for SemanticVariant
impl Unpin for SemanticVariant
impl UnsafeUnpin for SemanticVariant
impl UnwindSafe for SemanticVariant
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