Struct protobuf_json_mapping::ParseOptions
source · pub struct ParseOptions {
pub ignore_unknown_fields: bool,
pub _future_options: (),
}
Expand description
JSON parse options.
Examples
let parse_options = protobuf_json_mapping::ParseOptions {
ignore_unknown_fields: true,
..Default::default()
};
Fields§
§ignore_unknown_fields: bool
Ignore unknown fields when parsing.
When true
fields with unknown names are ignored.
When false
parser returns an error on unknown field.
_future_options: ()
Prevent initializing ParseOptions
enumerating all field.
Trait Implementations§
source§impl Clone for ParseOptions
impl Clone for ParseOptions
source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
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 ParseOptions
impl Debug for ParseOptions
source§impl Default for ParseOptions
impl Default for ParseOptions
source§fn default() -> ParseOptions
fn default() -> ParseOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnwindSafe for ParseOptions
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