#[non_exhaustive]pub struct ExperimentalFeatures {
pub rest_async_io_enabled: bool,
pub protobuf_pythonic_types_enabled: bool,
}Expand description
Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rest_async_io_enabled: boolEnables generation of asynchronous REST clients if rest transport is
enabled. By default, asynchronous REST clients will not be generated.
This feature will be enabled by default 1 month after launching the
feature in preview packages.
protobuf_pythonic_types_enabled: boolEnables generation of protobuf code using new types that are more
Pythonic which are included in protobuf>=5.29.x. This feature will be
enabled by default 1 month after launching the feature in preview
packages.
Implementations§
Source§impl ExperimentalFeatures
impl ExperimentalFeatures
Sourcepub fn set_rest_async_io_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_rest_async_io_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of rest_async_io_enabled.
Sourcepub fn set_protobuf_pythonic_types_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_protobuf_pythonic_types_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of protobuf_pythonic_types_enabled.
Trait Implementations§
Source§impl Clone for ExperimentalFeatures
impl Clone for ExperimentalFeatures
Source§fn clone(&self) -> ExperimentalFeatures
fn clone(&self) -> ExperimentalFeatures
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExperimentalFeatures
impl Debug for ExperimentalFeatures
Source§impl Default for ExperimentalFeatures
impl Default for ExperimentalFeatures
Source§fn default() -> ExperimentalFeatures
fn default() -> ExperimentalFeatures
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExperimentalFeatureswhere
ExperimentalFeatures: Default,
impl<'de> Deserialize<'de> for ExperimentalFeatureswhere
ExperimentalFeatures: Default,
Source§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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for ExperimentalFeatures
impl Message for ExperimentalFeatures
Source§impl PartialEq for ExperimentalFeatures
impl PartialEq for ExperimentalFeatures
Source§impl Serialize for ExperimentalFeatures
impl Serialize for ExperimentalFeatures
impl StructuralPartialEq for ExperimentalFeatures
Auto Trait Implementations§
impl Freeze for ExperimentalFeatures
impl RefUnwindSafe for ExperimentalFeatures
impl Send for ExperimentalFeatures
impl Sync for ExperimentalFeatures
impl Unpin for ExperimentalFeatures
impl UnwindSafe for ExperimentalFeatures
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
Mutably borrows from an owned value. Read more