#[repr(i32)]pub enum JsonFormat {
JSON_FORMAT_UNKNOWN = 0,
ALLOW = 1,
LEGACY_BEST_EFFORT = 2,
}Variants§
Trait Implementations§
Source§impl Clone for JsonFormat
impl Clone for JsonFormat
Source§fn clone(&self) -> JsonFormat
fn clone(&self) -> JsonFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Default for JsonFormat
impl Default for JsonFormat
Source§fn default() -> JsonFormat
fn default() -> JsonFormat
Returns the “default value” for a type. Read more
Source§impl Enumeration for JsonFormat
impl Enumeration for JsonFormat
Source§fn from_i32(value: i32) -> Option<JsonFormat>
fn from_i32(value: i32) -> Option<JsonFormat>
Convert from an
i32 wire value to the enum. Read moreSource§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.Source§fn from_proto_name(name: &str) -> Option<JsonFormat>
fn from_proto_name(name: &str) -> Option<JsonFormat>
Look up a variant by its protobuf name string. Read more
Source§fn values() -> &'static [JsonFormat]
fn values() -> &'static [JsonFormat]
All known variants of this enum, in proto declaration order. Read more
Source§impl Hash for JsonFormat
impl Hash for JsonFormat
Source§impl PartialEq for JsonFormat
impl PartialEq for JsonFormat
Source§fn eq(&self, other: &JsonFormat) -> bool
fn eq(&self, other: &JsonFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for JsonFormat
impl Eq for JsonFormat
impl StructuralPartialEq for JsonFormat
Auto Trait Implementations§
impl Freeze for JsonFormat
impl RefUnwindSafe for JsonFormat
impl Send for JsonFormat
impl Sync for JsonFormat
impl Unpin for JsonFormat
impl UnsafeUnpin 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