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>,
}
Expand description
Settings for Dotnet client libraries.
Fields§
§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.
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 moreSource§impl Debug for DotnetSettings
impl Debug for DotnetSettings
Source§impl Default for DotnetSettings
impl Default for DotnetSettings
Source§fn default() -> DotnetSettings
fn default() -> DotnetSettings
Source§impl Message for DotnetSettings
impl Message for DotnetSettings
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 DotnetSettings
impl PartialEq for DotnetSettings
impl StructuralPartialEq for DotnetSettings
Auto Trait Implementations§
impl Freeze for DotnetSettings
impl RefUnwindSafe for DotnetSettings
impl Send for DotnetSettings
impl Sync for DotnetSettings
impl Unpin for DotnetSettings
impl UnwindSafe for DotnetSettings
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