pub enum JFObject {
String(String),
Integer(i64),
Float(f64),
Dictionary(HashMap<String, JFObject>),
Array(Vec<JFObject>),
Null,
False,
True,
}
Variants§
String(String)
Integer(i64)
Float(f64)
Dictionary(HashMap<String, JFObject>)
Array(Vec<JFObject>)
Null
False
True
Implementations§
Source§impl JFObject
impl JFObject
pub fn into_string(&self) -> Option<&String>
pub fn into_i64(&self) -> Option<&i64>
pub fn into_f64(&self) -> Option<&f64>
pub fn into_hashmap(&self) -> Option<&HashMap<String, JFObject>>
pub fn into_vec(&self) -> Option<&Vec<JFObject>>
pub fn is_null(&self) -> bool
pub fn is_true(&self) -> bool
pub fn is_false(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_dictionary(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_float(&self) -> bool
pub fn unwrap_string(&self) -> &String
pub fn unwrap_i64(&self) -> &i64
pub fn unwrap_f64(&self) -> &f64
pub fn unwrap_hashmap(&self) -> &HashMap<String, JFObject>
pub fn unwrap_vec(&self) -> &Vec<JFObject>
pub fn to_json(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JFObject
impl RefUnwindSafe for JFObject
impl Send for JFObject
impl Sync for JFObject
impl Unpin for JFObject
impl UnwindSafe for JFObject
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
)