pub struct JSONObject { /* private fields */ }Implementations§
Source§impl JSONObject
impl JSONObject
pub fn new(value: Value) -> Self
pub fn has(&self, property: &str) -> bool
pub fn get_value(&self, property: &str) -> Result<Value, EncodingError>
pub fn get_optional_string( &self, property: &str, ) -> Result<Option<String>, EncodingError>
pub fn get_optional_u32( &self, property: &str, ) -> Result<Option<u32>, EncodingError>
pub fn get_str(&self, property: &str) -> Result<&str, EncodingError>
pub fn get_string(&self, property: &str) -> Result<String, EncodingError>
pub fn get_bool(&self, property: &str) -> Result<bool, EncodingError>
pub fn get_vec(&self, property: &str) -> Result<&Vec<Value>, EncodingError>
pub fn get_hex_bytes(&self, property: &str) -> Result<Vec<u8>, EncodingError>
pub fn get_u32(&self, property: &str) -> Result<u32, EncodingError>
pub fn get_u64(&self, property: &str) -> Result<u64, EncodingError>
pub fn get_json_object( &self, property: &str, ) -> Result<JSONObject, EncodingError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JSONObject
impl RefUnwindSafe for JSONObject
impl Send for JSONObject
impl Sync for JSONObject
impl Unpin for JSONObject
impl UnwindSafe for JSONObject
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