#[non_exhaustive]pub struct ExperimentalFeatures {
pub rest_async_io_enabled: bool,
pub protobuf_pythonic_types_enabled: bool,
pub unversioned_package_disabled: bool,
/* private fields */
}
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
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.rest_async_io_enabled: bool
Enables 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: bool
Enables 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.
unversioned_package_disabled: bool
Disables generation of an unversioned Python package for this client
library. This means that the module names will need to be versioned in
import statements. For example import google.cloud.library_v2
instead
of import google.cloud.library
.
Implementations§
Source§impl ExperimentalFeatures
impl ExperimentalFeatures
pub fn new() -> Self
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.
Sourcepub fn set_unversioned_package_disabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_unversioned_package_disabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of unversioned_package_disabled.
Trait Implementations§
Source§impl Clone for ExperimentalFeatures
impl Clone for ExperimentalFeatures
Source§fn clone(&self) -> ExperimentalFeatures
fn clone(&self) -> ExperimentalFeatures
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more