pub struct SemanticEnum {
pub id: SymbolId,
pub name: String,
pub original_name: String,
pub serde_name: String,
pub description: String,
pub parameters: Vec<SemanticTypeParameter>,
pub variants: BTreeMap<SymbolId, SemanticVariant>,
pub representation: Representation,
pub codegen_config: LanguageSpecificTypeCodegenConfig,
}Fields§
§id: SymbolId§name: String§original_name: String§serde_name: String§description: String§parameters: Vec<SemanticTypeParameter>Resolved generic parameters
variants: BTreeMap<SymbolId, SemanticVariant>Variants ordered deterministically
representation: RepresentationSerde representation strategy
codegen_config: LanguageSpecificTypeCodegenConfigLanguage-specific configuration
Trait Implementations§
Source§impl Clone for SemanticEnum
impl Clone for SemanticEnum
Source§fn clone(&self) -> SemanticEnum
fn clone(&self) -> SemanticEnum
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 SemanticEnum
impl Debug for SemanticEnum
Source§impl PartialEq for SemanticEnum
impl PartialEq for SemanticEnum
impl Eq for SemanticEnum
impl StructuralPartialEq for SemanticEnum
Auto Trait Implementations§
impl Freeze for SemanticEnum
impl RefUnwindSafe for SemanticEnum
impl Send for SemanticEnum
impl Sync for SemanticEnum
impl Unpin for SemanticEnum
impl UnsafeUnpin for SemanticEnum
impl UnwindSafe for SemanticEnum
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