[−][src]Struct protobuf::json::PrintOptions
Options for printing JSON to string
Examples
use protobuf::json; let print_options = json::PrintOptions { enum_values_int: true, ..Default::default() };
Fields
enum_values_int: boolUse ints instead of strings for enums.
Note both string or int can be parsed.
proto_field_name: boolUse protobuf field names instead of lowerCamelCase which is used by default.
Note both names are supported when JSON is parsed.
always_output_default_values: boolOutput field default values.
_future_options: ()Prevent initializing PrintOptions enumerating all field.
Trait Implementations
impl Default for PrintOptions[src]
fn default() -> PrintOptions[src]
impl Clone for PrintOptions[src]
fn clone(&self) -> PrintOptions[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for PrintOptions[src]
Auto Trait Implementations
impl Send for PrintOptions
impl Unpin for PrintOptions
impl Sync for PrintOptions
impl UnwindSafe for PrintOptions
impl RefUnwindSafe for PrintOptions
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,