Struct qt_core::q_json_document::JsonFormat
source · pub struct JsonFormat(/* private fields */);
Expand description
This value defines the format of the JSON byte array produced when converting to a QJsonDocument using toJson().
C++ enum: QJsonDocument::JsonFormat
.
This value defines the format of the JSON byte array produced when converting to a QJsonDocument using toJson().
Implementations§
source§impl JsonFormat
impl JsonFormat
sourcepub const Indented: JsonFormat = _
pub const Indented: JsonFormat = _
Defines human readable output as follows:
(C++ enum variant:{ “Array”: [ true, 999, “string” ], “Key”: “Value”, “null”: null }
Indented = 0
)
sourcepub const Compact: JsonFormat = _
pub const Compact: JsonFormat = _
Defines a compact output as follows:
(C++ enum variant:{“Array”:[true,999,“string”],“Key”:“Value”,“null”:null}
Compact = 1
)
Trait Implementations§
source§impl Clone for JsonFormat
impl Clone for JsonFormat
source§fn clone(&self) -> JsonFormat
fn clone(&self) -> JsonFormat
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 JsonFormat
impl Debug for JsonFormat
source§impl From<JsonFormat> for c_int
impl From<JsonFormat> for c_int
source§fn from(value: JsonFormat) -> Self
fn from(value: JsonFormat) -> Self
Converts to this type from the input type.
source§impl From<i32> for JsonFormat
impl From<i32> for JsonFormat
source§impl PartialEq for JsonFormat
impl PartialEq for JsonFormat
source§fn eq(&self, other: &JsonFormat) -> bool
fn eq(&self, other: &JsonFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for JsonFormat
impl Eq for JsonFormat
impl StructuralEq for JsonFormat
impl StructuralPartialEq for JsonFormat
Auto Trait Implementations§
impl RefUnwindSafe for JsonFormat
impl Send for JsonFormat
impl Sync for JsonFormat
impl Unpin for JsonFormat
impl UnwindSafe for JsonFormat
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