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>,
pub enforce_naming_style: Option<i32>,
pub default_symbol_visibility: Option<i32>,
}
Expand description
TODO Enums in C++ gencode (and potentially other languages) are not well scoped. This means that each of the feature enums below can clash with each other. The short names we’ve chosen maximize call-site readability, but leave us very open to this scenario. A future feature will be designed and implemented to handle this, hopefully before we ever hit a conflict here.
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>
§enforce_naming_style: Option<i32>
§default_symbol_visibility: 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.
Sourcepub fn enforce_naming_style(&self) -> EnforceNamingStyle
pub fn enforce_naming_style(&self) -> EnforceNamingStyle
Returns the enum value of enforce_naming_style
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_enforce_naming_style(&mut self, value: EnforceNamingStyle)
pub fn set_enforce_naming_style(&mut self, value: EnforceNamingStyle)
Sets enforce_naming_style
to the provided enum value.
Sourcepub fn default_symbol_visibility(&self) -> DefaultSymbolVisibility
pub fn default_symbol_visibility(&self) -> DefaultSymbolVisibility
Returns the enum value of default_symbol_visibility
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_default_symbol_visibility(&mut self, value: DefaultSymbolVisibility)
pub fn set_default_symbol_visibility(&mut self, value: DefaultSymbolVisibility)
Sets default_symbol_visibility
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§const fn clone_from(&mut self, source: &Self)
const 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
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
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request