pub struct UnionDef {
pub annotations: Vec<Annotation>,
pub ident: String,
pub switch_type_spec: SwitchTypeSpec,
pub case: Vec<Case>,
}Fields§
§annotations: Vec<Annotation>§ident: String§switch_type_spec: SwitchTypeSpec§case: Vec<Case>Implementations§
Source§impl UnionDef
impl UnionDef
pub fn serialize_kind(&self, config: &SerializeConfig) -> SerializeKind
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnionDef
impl<'de> Deserialize<'de> for UnionDef
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 UnionDef
impl RefUnwindSafe for UnionDef
impl Send for UnionDef
impl Sync for UnionDef
impl Unpin for UnionDef
impl UnsafeUnpin for UnionDef
impl UnwindSafe for UnionDef
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