pub struct Variant {
pub tag: String,
pub type_name: String,
}Fields§
§tag: StringThe value of the tag field that selects this variant.
type_name: StringThe object type it selects. Always a declared schema, never a union:
a variant that were itself a union would need a second discriminant to
resolve, and nothing in the payload says which one to read first.
Trait Implementations§
impl Eq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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