pub enum TypeOrUnion {
Single(Type),
Union(Vec<Type>),
}Variants§
Trait Implementations§
Source§impl Clone for TypeOrUnion
impl Clone for TypeOrUnion
Source§impl Debug for TypeOrUnion
impl Debug for TypeOrUnion
Source§impl<'de> Deserialize<'de> for TypeOrUnion
impl<'de> Deserialize<'de> for TypeOrUnion
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 TypeOrUnion
impl PartialEq for TypeOrUnion
Source§impl Serialize for TypeOrUnion
impl Serialize for TypeOrUnion
impl StructuralPartialEq for TypeOrUnion
Auto Trait Implementations§
impl Freeze for TypeOrUnion
impl RefUnwindSafe for TypeOrUnion
impl Send for TypeOrUnion
impl Sync for TypeOrUnion
impl Unpin for TypeOrUnion
impl UnsafeUnpin for TypeOrUnion
impl UnwindSafe for TypeOrUnion
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