pub struct FeatureSet {
pub field_presence: Option<i32>,
pub enum_type: Option<i32>,
pub repeated_field_encoding: Option<i32>,
pub string_field_validation: Option<i32>,
pub message_encoding: Option<i32>,
pub json_format: Option<i32>,
pub raw_features: Option<Box<FeatureSet>>,
}Fields§
§field_presence: Option<i32>§enum_type: Option<i32>§repeated_field_encoding: Option<i32>§string_field_validation: Option<i32>§message_encoding: Option<i32>§json_format: Option<i32>§raw_features: Option<Box<FeatureSet>>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 string_field_validation(&self) -> StringFieldValidation
pub fn string_field_validation(&self) -> StringFieldValidation
Returns the enum value of string_field_validation, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_string_field_validation(&mut self, value: StringFieldValidation)
pub fn set_string_field_validation(&mut self, value: StringFieldValidation)
Sets string_field_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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.