#[non_exhaustive]pub struct GoSettings {
    pub common: Option<CommonLanguageSettings>,
    pub renamed_services: HashMap<String, String>,
}Expand description
Settings for Go client libraries.
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.common: Option<CommonLanguageSettings>Some settings.
renamed_services: HashMap<String, String>Map of service names to renamed services. Keys are the package relative service names and values are the name to be used for the service client and call options.
publishing: go_settings: renamed_services: Publisher: TopicAdmin
Implementations§
Source§impl GoSettings
 
impl GoSettings
Sourcepub fn set_common<T: Into<Option<CommonLanguageSettings>>>(self, v: T) -> Self
 
pub fn set_common<T: Into<Option<CommonLanguageSettings>>>(self, v: T) -> Self
Sets 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.
Trait Implementations§
Source§impl Clone for GoSettings
 
impl Clone for GoSettings
Source§fn clone(&self) -> GoSettings
 
fn clone(&self) -> GoSettings
Returns a copy 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 GoSettings
 
impl Debug for GoSettings
Source§impl Default for GoSettings
 
impl Default for GoSettings
Source§fn default() -> GoSettings
 
fn default() -> GoSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoSettingswhere
    GoSettings: Default,
 
impl<'de> Deserialize<'de> for GoSettingswhere
    GoSettings: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GoSettings
 
impl PartialEq for GoSettings
Source§impl Serialize for GoSettings
 
impl Serialize for GoSettings
impl StructuralPartialEq for GoSettings
Auto Trait Implementations§
impl Freeze for GoSettings
impl RefUnwindSafe for GoSettings
impl Send for GoSettings
impl Sync for GoSettings
impl Unpin for GoSettings
impl UnwindSafe for GoSettings
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