Struct reflectapi_schema::Enum
source · pub struct Enum {
pub name: String,
pub serde_name: String,
pub description: String,
pub parameters: Vec<TypeParameter>,
pub representation: Representation,
pub variants: Vec<Variant>,
}
Fields§
§name: String
§serde_name: String
§description: String
§parameters: Vec<TypeParameter>
Generic type parameters, if any
representation: Representation
§variants: Vec<Variant>
Implementations§
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 PartialEq for Enum
impl PartialEq for Enum
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