#[non_exhaustive]pub struct DotnetSettings {
pub common: Option<CommonLanguageSettings>,
pub renamed_services: HashMap<String, String>,
pub renamed_resources: HashMap<String, String>,
pub ignored_resources: Vec<String>,
pub forced_namespace_aliases: Vec<String>,
pub handwritten_signatures: Vec<String>,
/* private fields */
}
Expand description
Settings for Dotnet 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.common: Option<CommonLanguageSettings>
Some settings.
renamed_services: HashMap<String, String>
Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.
renamed_resources: HashMap<String, String>
Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: “datalabeling.googleapis.com/Dataset”: “DataLabelingDataset”
ignored_resources: Vec<String>
List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: “documentai.googleapis.com/Location”
forced_namespace_aliases: Vec<String>
Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision
handwritten_signatures: Vec<String>
Method signatures (in the form “service.method(signature)”) which are provided separately, so shouldn’t be generated. Snippets calling these methods are still generated, however.
Implementations§
Source§impl DotnetSettings
impl DotnetSettings
pub fn new() -> Self
Sourcepub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonLanguageSettings>,
pub fn set_common<T>(self, v: T) -> Selfwhere
T: Into<CommonLanguageSettings>,
Sets the value of common.
Sourcepub fn set_or_clear_common<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonLanguageSettings>,
pub fn set_or_clear_common<T>(self, v: Option<T>) -> Selfwhere
T: Into<CommonLanguageSettings>,
Sets or clears the value of common.
Sourcepub fn set_renamed_services<T, K, V>(self, v: T) -> Self
pub fn set_renamed_services<T, K, V>(self, v: T) -> Self
Sets the value of renamed_services.
Sourcepub fn set_renamed_resources<T, K, V>(self, v: T) -> Self
pub fn set_renamed_resources<T, K, V>(self, v: T) -> Self
Sets the value of renamed_resources.
Sourcepub fn set_ignored_resources<T, V>(self, v: T) -> Self
pub fn set_ignored_resources<T, V>(self, v: T) -> Self
Sets the value of ignored_resources.
Sourcepub fn set_forced_namespace_aliases<T, V>(self, v: T) -> Self
pub fn set_forced_namespace_aliases<T, V>(self, v: T) -> Self
Sets the value of forced_namespace_aliases.
Sourcepub fn set_handwritten_signatures<T, V>(self, v: T) -> Self
pub fn set_handwritten_signatures<T, V>(self, v: T) -> Self
Sets the value of handwritten_signatures.
Trait Implementations§
Source§impl Clone for DotnetSettings
impl Clone for DotnetSettings
Source§fn clone(&self) -> DotnetSettings
fn clone(&self) -> DotnetSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more