pub struct CurrentEnum<'document> {
pub name: Option<&'static str>,
pub tag: &'document str,
}
Expand description
Represents the current state of an enum during deserialization.
Fields§
§name: Option<&'static str>
The name of the enum variant.
tag: &'document str
The tag of the enum variant.
Trait Implementations§
Source§impl<'document> Clone for CurrentEnum<'document>
impl<'document> Clone for CurrentEnum<'document>
Source§fn clone(&self) -> CurrentEnum<'document>
fn clone(&self) -> CurrentEnum<'document>
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<'document> Debug for CurrentEnum<'document>
impl<'document> Debug for CurrentEnum<'document>
impl<'document> Copy for CurrentEnum<'document>
Auto Trait Implementations§
impl<'document> Freeze for CurrentEnum<'document>
impl<'document> RefUnwindSafe for CurrentEnum<'document>
impl<'document> Send for CurrentEnum<'document>
impl<'document> Sync for CurrentEnum<'document>
impl<'document> Unpin for CurrentEnum<'document>
impl<'document> UnwindSafe for CurrentEnum<'document>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)