#[non_exhaustive]pub struct CommonLanguageSettings {
pub reference_docs_uri: String,
pub destinations: Vec<ClientLibraryDestination>,
pub selective_gapic_generation: Option<SelectiveGapicGeneration>,
/* private fields */
}
Expand description
Required information for every language.
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.reference_docs_uri: String
👎Deprecated
Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest
destinations: Vec<ClientLibraryDestination>
The destination where API teams want this client library to be published.
selective_gapic_generation: Option<SelectiveGapicGeneration>
Configuration for which RPCs should be generated in the GAPIC client.
Implementations§
Source§impl CommonLanguageSettings
impl CommonLanguageSettings
pub fn new() -> Self
Sourcepub fn set_reference_docs_uri<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_reference_docs_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of reference_docs_uri.
Sourcepub fn set_destinations<T, V>(self, v: T) -> Self
pub fn set_destinations<T, V>(self, v: T) -> Self
Sets the value of destinations.
Sourcepub fn set_selective_gapic_generation<T>(self, v: T) -> Selfwhere
T: Into<SelectiveGapicGeneration>,
pub fn set_selective_gapic_generation<T>(self, v: T) -> Selfwhere
T: Into<SelectiveGapicGeneration>,
Sets the value of selective_gapic_generation.
Sourcepub fn set_or_clear_selective_gapic_generation<T>(self, v: Option<T>) -> Selfwhere
T: Into<SelectiveGapicGeneration>,
pub fn set_or_clear_selective_gapic_generation<T>(self, v: Option<T>) -> Selfwhere
T: Into<SelectiveGapicGeneration>,
Sets or clears the value of selective_gapic_generation.
Trait Implementations§
Source§impl Clone for CommonLanguageSettings
impl Clone for CommonLanguageSettings
Source§fn clone(&self) -> CommonLanguageSettings
fn clone(&self) -> CommonLanguageSettings
Returns a duplicate 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 CommonLanguageSettings
impl Debug for CommonLanguageSettings
Source§impl Default for CommonLanguageSettings
impl Default for CommonLanguageSettings
Source§fn default() -> CommonLanguageSettings
fn default() -> CommonLanguageSettings
Returns the “default value” for a type. Read more
Source§impl Message for CommonLanguageSettings
impl Message for CommonLanguageSettings
Source§impl PartialEq for CommonLanguageSettings
impl PartialEq for CommonLanguageSettings
impl StructuralPartialEq for CommonLanguageSettings
Auto Trait Implementations§
impl Freeze for CommonLanguageSettings
impl RefUnwindSafe for CommonLanguageSettings
impl Send for CommonLanguageSettings
impl Sync for CommonLanguageSettings
impl Unpin for CommonLanguageSettings
impl UnwindSafe for CommonLanguageSettings
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