pub struct Enumeration {
pub type_name: String,
pub variant_name: String,
pub value: VariantValue,
}Fields§
§type_name: String§variant_name: String§value: VariantValueImplementations§
Source§impl Enumeration
impl Enumeration
pub fn new(type_name: &str, variant_name: &str) -> Self
pub fn with_value(type_name: &str, variant_name: &str, value: AsonNode) -> Self
pub fn with_tuple_like( type_name: &str, variant_name: &str, values: Vec<AsonNode>, ) -> Self
pub fn with_object_like( type_name: &str, variant_name: &str, key_value_pairs: Vec<KeyValuePair>, ) -> Self
Trait Implementations§
Source§impl Debug for Enumeration
impl Debug for Enumeration
Source§impl PartialEq for Enumeration
impl PartialEq for Enumeration
impl StructuralPartialEq for Enumeration
Auto Trait Implementations§
impl Freeze for Enumeration
impl RefUnwindSafe for Enumeration
impl Send for Enumeration
impl Sync for Enumeration
impl Unpin for Enumeration
impl UnsafeUnpin for Enumeration
impl UnwindSafe for Enumeration
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