#[non_exhaustive]#[repr(u32)]pub enum cef_json_writer_options_t {
JSON_WRITER_DEFAULT = 0,
JSON_WRITER_OMIT_BINARY_VALUES = 1,
JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION = 2,
JSON_WRITER_PRETTY_PRINT = 4,
}Expand description
Options that can be passed to CefWriteJSON.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
JSON_WRITER_DEFAULT = 0
Default behavior.
JSON_WRITER_OMIT_BINARY_VALUES = 1
This option instructs the writer that if a Binary value is encountered, the value (and key if within a dictionary) will be omitted from the output, and success will be returned. Otherwise, if a binary value is encountered, failure will be returned.
JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION = 2
This option instructs the writer to write doubles that have no fractional part as a normal integer (i.e., without using exponential notation or appending a ‘.0’) as long as the value is within the range of a 64-bit int.
JSON_WRITER_PRETTY_PRINT = 4
Return a slightly nicer formatted json string (pads with whitespace to help with readability).
Trait Implementations§
Source§impl Clone for cef_json_writer_options_t
impl Clone for cef_json_writer_options_t
Source§fn clone(&self) -> cef_json_writer_options_t
fn clone(&self) -> cef_json_writer_options_t
Returns a duplicate 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 cef_json_writer_options_t
impl Debug for cef_json_writer_options_t
Source§impl Hash for cef_json_writer_options_t
impl Hash for cef_json_writer_options_t
impl Copy for cef_json_writer_options_t
impl Eq for cef_json_writer_options_t
impl StructuralPartialEq for cef_json_writer_options_t
Auto Trait Implementations§
impl Freeze for cef_json_writer_options_t
impl RefUnwindSafe for cef_json_writer_options_t
impl Send for cef_json_writer_options_t
impl Sync for cef_json_writer_options_t
impl Unpin for cef_json_writer_options_t
impl UnwindSafe for cef_json_writer_options_t
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