pub struct Enum {
    pub name: String,
    pub serde_name: String,
    pub description: String,
    pub parameters: Vec<TypeParameter>,
    pub representation: Representation,
    pub variants: Vec<Variant>,
    pub codegen_config: LanguageSpecificTypeCodegenConfig,
}Fields§
§name: String§serde_name: String§description: String§parameters: Vec<TypeParameter>Generic type parameters, if any
representation: Representation§variants: Vec<Variant>§codegen_config: LanguageSpecificTypeCodegenConfigImplementations§
Source§impl Enum
 
impl Enum
pub fn new(name: String) -> Self
pub fn name(&self) -> &str
pub fn serde_name(&self) -> &str
pub fn description(&self) -> &str
pub fn parameters(&self) -> Iter<'_, TypeParameter>
pub fn representation(&self) -> &Representation
pub fn variants(&self) -> Iter<'_, Variant>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Enum
 
impl<'de> Deserialize<'de> for Enum
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
Source§impl Instantiate for Enum
 
impl Instantiate for Enum
Source§fn instantiate(self, type_args: &[TypeReference]) -> Self
 
fn instantiate(self, type_args: &[TypeReference]) -> Self
Return a new non-generic Enum with each type parameter substituted with a type
impl Eq for Enum
impl StructuralPartialEq for Enum
Auto Trait Implementations§
impl Freeze for Enum
impl RefUnwindSafe for Enum
impl Send for Enum
impl Sync for Enum
impl Unpin for Enum
impl UnwindSafe for Enum
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