pub struct UnknownVariant { /* private fields */ }Implementations§
Source§impl UnknownVariant
 
impl UnknownVariant
pub fn new(id: u32, value: SerializedValue) -> Self
pub fn id(&self) -> u32
pub fn value(&self) -> &SerializedValueSlice
pub fn into_value(self) -> SerializedValue
pub fn deserialize<T: Deserialize>(&self) -> Result<T, DeserializeError>
pub fn deserialize_as_value(&self) -> Result<Enum, DeserializeError>
Trait Implementations§
Source§impl Clone for UnknownVariant
 
impl Clone for UnknownVariant
Source§fn clone(&self) -> UnknownVariant
 
fn clone(&self) -> UnknownVariant
Returns a duplicate 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 UnknownVariant
 
impl Debug for UnknownVariant
Source§impl PartialEq for UnknownVariant
 
impl PartialEq for UnknownVariant
impl Eq for UnknownVariant
impl StructuralPartialEq for UnknownVariant
Auto Trait Implementations§
impl Freeze for UnknownVariant
impl RefUnwindSafe for UnknownVariant
impl Send for UnknownVariant
impl Sync for UnknownVariant
impl Unpin for UnknownVariant
impl UnwindSafe for UnknownVariant
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