#[non_exhaustive]pub struct GoSettings {
pub common: Option<CommonLanguageSettings>,
pub renamed_services: HashMap<String, String>,
/* private fields */
}
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
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.
Trait Implementations§
Source§impl Clone for GoSettings
impl Clone for GoSettings
Source§fn clone(&self) -> GoSettings
fn clone(&self) -> GoSettings
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 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 PartialEq for GoSettings
impl PartialEq 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