#[repr(C)]pub struct QJsonObject { /* private fields */ }
Expand description
Wrapper around QJsonObject
class.
Implementations§
Source§impl QJsonObject
impl QJsonObject
pub fn to_json(&self) -> QByteArray
pub fn to_json_pretty(&self) -> QByteArray
pub fn insert(&mut self, key: &str, value: QJsonValue)
pub fn value(&self, key: &str) -> QJsonValue
pub fn take(&mut self, key: &str) -> QJsonValue
pub fn remove(&mut self, key: &str)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains(&self, key: &str) -> bool
pub fn keys(&self) -> Vec<String>
Trait Implementations§
Source§impl Clone for QJsonObject
impl Clone for QJsonObject
Source§impl Default for QJsonObject
impl Default for QJsonObject
Source§impl Drop for QJsonObject
impl Drop for QJsonObject
Source§impl From<HashMap<String, QJsonValue>> for QJsonObject
impl From<HashMap<String, QJsonValue>> for QJsonObject
Source§fn from(v: HashMap<String, QJsonValue>) -> QJsonObject
fn from(v: HashMap<String, QJsonValue>) -> QJsonObject
Converts to this type from the input type.
Source§impl From<QJsonObject> for QJsonValue
impl From<QJsonObject> for QJsonValue
Source§fn from(v: QJsonObject) -> QJsonValue
fn from(v: QJsonObject) -> QJsonValue
Converts to this type from the input type.
Source§impl Into<QJsonObject> for QJsonValue
impl Into<QJsonObject> for QJsonValue
Source§fn into(self) -> QJsonObject
fn into(self) -> QJsonObject
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for QJsonObject
impl PartialEq for QJsonObject
impl Eq for QJsonObject
Auto Trait Implementations§
impl Freeze for QJsonObject
impl RefUnwindSafe for QJsonObject
impl Send for QJsonObject
impl Sync for QJsonObject
impl Unpin for QJsonObject
impl UnwindSafe for QJsonObject
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