Struct pbjson_types::FeatureSet
source · pub struct FeatureSet {
pub field_presence: Option<i32>,
pub enum_type: Option<i32>,
pub repeated_field_encoding: Option<i32>,
pub utf8_validation: Option<i32>,
pub message_encoding: Option<i32>,
pub json_format: Option<i32>,
}
Fields§
§field_presence: Option<i32>
§enum_type: Option<i32>
§repeated_field_encoding: Option<i32>
§utf8_validation: Option<i32>
§message_encoding: Option<i32>
§json_format: Option<i32>
Implementations§
source§impl FeatureSet
impl FeatureSet
sourcepub fn field_presence(&self) -> FieldPresence
pub fn field_presence(&self) -> FieldPresence
Returns the enum value of field_presence
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_field_presence(&mut self, value: FieldPresence)
pub fn set_field_presence(&mut self, value: FieldPresence)
Sets field_presence
to the provided enum value.
sourcepub fn enum_type(&self) -> EnumType
pub fn enum_type(&self) -> EnumType
Returns the enum value of enum_type
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_enum_type(&mut self, value: EnumType)
pub fn set_enum_type(&mut self, value: EnumType)
Sets enum_type
to the provided enum value.
sourcepub fn repeated_field_encoding(&self) -> RepeatedFieldEncoding
pub fn repeated_field_encoding(&self) -> RepeatedFieldEncoding
Returns the enum value of repeated_field_encoding
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_repeated_field_encoding(&mut self, value: RepeatedFieldEncoding)
pub fn set_repeated_field_encoding(&mut self, value: RepeatedFieldEncoding)
Sets repeated_field_encoding
to the provided enum value.
sourcepub fn utf8_validation(&self) -> Utf8Validation
pub fn utf8_validation(&self) -> Utf8Validation
Returns the enum value of utf8_validation
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_utf8_validation(&mut self, value: Utf8Validation)
pub fn set_utf8_validation(&mut self, value: Utf8Validation)
Sets utf8_validation
to the provided enum value.
sourcepub fn message_encoding(&self) -> MessageEncoding
pub fn message_encoding(&self) -> MessageEncoding
Returns the enum value of message_encoding
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_message_encoding(&mut self, value: MessageEncoding)
pub fn set_message_encoding(&mut self, value: MessageEncoding)
Sets message_encoding
to the provided enum value.
sourcepub fn json_format(&self) -> JsonFormat
pub fn json_format(&self) -> JsonFormat
Returns the enum value of json_format
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_json_format(&mut self, value: JsonFormat)
pub fn set_json_format(&mut self, value: JsonFormat)
Sets json_format
to the provided enum value.
Trait Implementations§
source§impl Clone for FeatureSet
impl Clone for FeatureSet
source§fn clone(&self) -> FeatureSet
fn clone(&self) -> FeatureSet
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FeatureSet
impl Debug for FeatureSet
source§impl Default for FeatureSet
impl Default for FeatureSet
§impl<'de> Deserialize<'de> for FeatureSet
impl<'de> Deserialize<'de> for FeatureSet
§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>,
source§impl Message for FeatureSet
impl Message for FeatureSet
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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,
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,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for FeatureSet
impl PartialEq for FeatureSet
source§fn eq(&self, other: &FeatureSet) -> bool
fn eq(&self, other: &FeatureSet) -> bool
self
and other
values to be equal, and is used
by ==
.§impl Serialize for FeatureSet
impl Serialize for FeatureSet
impl Copy for FeatureSet
impl StructuralPartialEq for FeatureSet
Auto Trait Implementations§
impl Freeze for FeatureSet
impl RefUnwindSafe for FeatureSet
impl Send for FeatureSet
impl Sync for FeatureSet
impl Unpin for FeatureSet
impl UnwindSafe for FeatureSet
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
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)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)