pub struct SerdeEnumVariant {
pub meta: Option<Meta>,
pub name: String,
pub fields: Vec<SerdeStructField>,
pub discriminant: Option<u8>,
}
Fields§
§meta: Option<Meta>
§name: String
§fields: Vec<SerdeStructField>
§discriminant: Option<u8>
Implementations§
source§impl SerdeEnumVariant
impl SerdeEnumVariant
pub fn compile(&self) -> ScriptEnumVariant<'static>
Trait Implementations§
source§impl Clone for SerdeEnumVariant
impl Clone for SerdeEnumVariant
source§fn clone(&self) -> SerdeEnumVariant
fn clone(&self) -> SerdeEnumVariant
Returns a copy 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 SerdeEnumVariant
impl Debug for SerdeEnumVariant
source§impl<'de> Deserialize<'de> for SerdeEnumVariant
impl<'de> Deserialize<'de> for SerdeEnumVariant
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 SerdeEnumVariant
impl RefUnwindSafe for SerdeEnumVariant
impl Send for SerdeEnumVariant
impl Sync for SerdeEnumVariant
impl Unpin for SerdeEnumVariant
impl UnwindSafe for SerdeEnumVariant
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