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 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>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
.source§impl PartialEq<FeatureSet> for FeatureSet
impl PartialEq<FeatureSet> 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 ==
.