#[non_exhaustive]pub struct ClientLibrarySettings {
pub version: String,
pub launch_stage: LaunchStage,
pub rest_numeric_enums: bool,
pub java_settings: Option<JavaSettings>,
pub cpp_settings: Option<CppSettings>,
pub php_settings: Option<PhpSettings>,
pub python_settings: Option<PythonSettings>,
pub node_settings: Option<NodeSettings>,
pub dotnet_settings: Option<DotnetSettings>,
pub ruby_settings: Option<RubySettings>,
pub go_settings: Option<GoSettings>,
}Expand description
Details about how and where to publish client libraries.
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.version: StringVersion of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: “google.cloud.speech.v1” and “google.spanner.admin.database.v1”.
launch_stage: LaunchStageLaunch stage of this version of the API.
rest_numeric_enums: boolWhen using transport=rest, the client request will encode enums as numbers rather than strings.
java_settings: Option<JavaSettings>Settings for legacy Java features, supported in the Service YAML.
cpp_settings: Option<CppSettings>Settings for C++ client libraries.
php_settings: Option<PhpSettings>Settings for PHP client libraries.
python_settings: Option<PythonSettings>Settings for Python client libraries.
node_settings: Option<NodeSettings>Settings for Node client libraries.
dotnet_settings: Option<DotnetSettings>Settings for .NET client libraries.
ruby_settings: Option<RubySettings>Settings for Ruby client libraries.
go_settings: Option<GoSettings>Settings for Go client libraries.
Implementations§
Source§impl ClientLibrarySettings
impl ClientLibrarySettings
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sets the value of version.
Sourcepub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
pub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
Sets the value of launch_stage.
Sourcepub fn set_rest_numeric_enums<T: Into<bool>>(self, v: T) -> Self
pub fn set_rest_numeric_enums<T: Into<bool>>(self, v: T) -> Self
Sets the value of rest_numeric_enums.
Sourcepub fn set_java_settings<T: Into<Option<JavaSettings>>>(self, v: T) -> Self
pub fn set_java_settings<T: Into<Option<JavaSettings>>>(self, v: T) -> Self
Sets the value of java_settings.
Sourcepub fn set_cpp_settings<T: Into<Option<CppSettings>>>(self, v: T) -> Self
pub fn set_cpp_settings<T: Into<Option<CppSettings>>>(self, v: T) -> Self
Sets the value of cpp_settings.
Sourcepub fn set_php_settings<T: Into<Option<PhpSettings>>>(self, v: T) -> Self
pub fn set_php_settings<T: Into<Option<PhpSettings>>>(self, v: T) -> Self
Sets the value of php_settings.
Sourcepub fn set_python_settings<T: Into<Option<PythonSettings>>>(self, v: T) -> Self
pub fn set_python_settings<T: Into<Option<PythonSettings>>>(self, v: T) -> Self
Sets the value of python_settings.
Sourcepub fn set_node_settings<T: Into<Option<NodeSettings>>>(self, v: T) -> Self
pub fn set_node_settings<T: Into<Option<NodeSettings>>>(self, v: T) -> Self
Sets the value of node_settings.
Sourcepub fn set_dotnet_settings<T: Into<Option<DotnetSettings>>>(self, v: T) -> Self
pub fn set_dotnet_settings<T: Into<Option<DotnetSettings>>>(self, v: T) -> Self
Sets the value of dotnet_settings.
Sourcepub fn set_ruby_settings<T: Into<Option<RubySettings>>>(self, v: T) -> Self
pub fn set_ruby_settings<T: Into<Option<RubySettings>>>(self, v: T) -> Self
Sets the value of ruby_settings.
Sourcepub fn set_go_settings<T: Into<Option<GoSettings>>>(self, v: T) -> Self
pub fn set_go_settings<T: Into<Option<GoSettings>>>(self, v: T) -> Self
Sets the value of go_settings.
Trait Implementations§
Source§impl Clone for ClientLibrarySettings
impl Clone for ClientLibrarySettings
Source§fn clone(&self) -> ClientLibrarySettings
fn clone(&self) -> ClientLibrarySettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more