pub struct EnumModel {
pub name: String,
pub variants: Vec<String>,
pub description: Option<String>,
pub custom_attrs: Option<Vec<String>>,
}Fields§
§name: String§variants: Vec<String>§description: Option<String>§custom_attrs: Option<Vec<String>>Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnumModel
impl<'de> Deserialize<'de> for EnumModel
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
Auto Trait Implementations§
impl Freeze for EnumModel
impl RefUnwindSafe for EnumModel
impl Send for EnumModel
impl Sync for EnumModel
impl Unpin for EnumModel
impl UnsafeUnpin for EnumModel
impl UnwindSafe for EnumModel
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