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
.