Struct pbjson_types::MessageOptions
source · pub struct MessageOptions {
pub message_set_wire_format: Option<bool>,
pub no_standard_descriptor_accessor: Option<bool>,
pub deprecated: Option<bool>,
pub map_entry: Option<bool>,
pub deprecated_legacy_json_field_conflicts: Option<bool>,
pub features: Option<FeatureSet>,
pub uninterpreted_option: Vec<UninterpretedOption>,
}
Fields§
§message_set_wire_format: Option<bool>
§no_standard_descriptor_accessor: Option<bool>
§deprecated: Option<bool>
§map_entry: Option<bool>
§deprecated_legacy_json_field_conflicts: Option<bool>
👎Deprecated
§features: Option<FeatureSet>
§uninterpreted_option: Vec<UninterpretedOption>
Implementations§
source§impl MessageOptions
impl MessageOptions
sourcepub fn message_set_wire_format(&self) -> bool
pub fn message_set_wire_format(&self) -> bool
Returns the value of message_set_wire_format
, or the default value if message_set_wire_format
is unset.
sourcepub fn no_standard_descriptor_accessor(&self) -> bool
pub fn no_standard_descriptor_accessor(&self) -> bool
Returns the value of no_standard_descriptor_accessor
, or the default value if no_standard_descriptor_accessor
is unset.
sourcepub fn deprecated(&self) -> bool
pub fn deprecated(&self) -> bool
Returns the value of deprecated
, or the default value if deprecated
is unset.
sourcepub fn map_entry(&self) -> bool
pub fn map_entry(&self) -> bool
Returns the value of map_entry
, or the default value if map_entry
is unset.
sourcepub fn deprecated_legacy_json_field_conflicts(&self) -> bool
pub fn deprecated_legacy_json_field_conflicts(&self) -> bool
Returns the value of deprecated_legacy_json_field_conflicts
, or the default value if deprecated_legacy_json_field_conflicts
is unset.
Trait Implementations§
source§impl Clone for MessageOptions
impl Clone for MessageOptions
source§fn clone(&self) -> MessageOptions
fn clone(&self) -> MessageOptions
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 MessageOptions
impl Debug for MessageOptions
source§impl Default for MessageOptions
impl Default for MessageOptions
§impl<'de> Deserialize<'de> for MessageOptions
impl<'de> Deserialize<'de> for MessageOptions
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Message for MessageOptions
impl Message for MessageOptions
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for MessageOptions
impl PartialEq for MessageOptions
source§fn eq(&self, other: &MessageOptions) -> bool
fn eq(&self, other: &MessageOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for MessageOptions
impl Serialize for MessageOptions
impl StructuralPartialEq for MessageOptions
Auto Trait Implementations§
impl Freeze for MessageOptions
impl RefUnwindSafe for MessageOptions
impl Send for MessageOptions
impl Sync for MessageOptions
impl Unpin for MessageOptions
impl UnwindSafe for MessageOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)