Struct JsonMember
#[non_exhaustive]pub struct JsonMember {
pub key: String,
pub value: JsonValue,
}Expand description
Ordered JSON object member. Duplicate keys are preserved.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: String§value: JsonValueImplementations§
§impl JsonMember
impl JsonMember
pub fn new(key: impl Into<String>, value: JsonValue) -> JsonMember
Trait Implementations§
§impl Clone for JsonMember
impl Clone for JsonMember
§fn clone(&self) -> JsonMember
fn clone(&self) -> JsonMember
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 more§impl Debug for JsonMember
impl Debug for JsonMember
§impl PartialEq for JsonMember
impl PartialEq for JsonMember
impl StructuralPartialEq for JsonMember
Auto Trait Implementations§
impl Freeze for JsonMember
impl RefUnwindSafe for JsonMember
impl Send for JsonMember
impl Sync for JsonMember
impl Unpin for JsonMember
impl UnsafeUnpin for JsonMember
impl UnwindSafe for JsonMember
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