Enum json_node::models::JsonValueType
source · pub enum JsonValueType {
String(String),
Integer(i64),
Float(f64),
Boolean(bool),
Null,
}
Variants§
Implementations§
source§impl JsonValueType
impl JsonValueType
pub fn is_string(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_boolean(&self) -> bool
pub fn to_json_string(&self) -> String
Trait Implementations§
source§impl Clone for JsonValueType
impl Clone for JsonValueType
source§fn clone(&self) -> JsonValueType
fn clone(&self) -> JsonValueType
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 Debug for JsonValueType
impl Debug for JsonValueType
source§impl PartialEq<JsonValueType> for JsonValueType
impl PartialEq<JsonValueType> for JsonValueType
source§fn eq(&self, other: &JsonValueType) -> bool
fn eq(&self, other: &JsonValueType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for JsonValueType
Auto Trait Implementations§
impl RefUnwindSafe for JsonValueType
impl Send for JsonValueType
impl Sync for JsonValueType
impl Unpin for JsonValueType
impl UnwindSafe for JsonValueType
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