#[non_exhaustive]pub struct SelectiveGapicGeneration {
pub methods: Vec<String>,
pub generate_omitted_as_internal: bool,
/* private fields */
}
Expand description
This message is used to configure the generation of a subset of the RPCs in a service for 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.methods: Vec<String>
An allowlist of the fully qualified names of RPCs that should be included on public client surfaces.
generate_omitted_as_internal: bool
Setting this to true indicates to the client generators that methods that would be excluded from the generation should instead be generated in a way that indicates these methods should not be consumed by end users. How this is expressed is up to individual language implementations to decide. Some examples may be: added annotations, obfuscated identifiers, or other language idiomatic patterns.
Implementations§
Source§impl SelectiveGapicGeneration
impl SelectiveGapicGeneration
pub fn new() -> Self
Sourcepub fn set_methods<T, V>(self, v: T) -> Self
pub fn set_methods<T, V>(self, v: T) -> Self
Sets the value of methods.
Sourcepub fn set_generate_omitted_as_internal<T: Into<bool>>(self, v: T) -> Self
pub fn set_generate_omitted_as_internal<T: Into<bool>>(self, v: T) -> Self
Sets the value of generate_omitted_as_internal.
Trait Implementations§
Source§impl Clone for SelectiveGapicGeneration
impl Clone for SelectiveGapicGeneration
Source§fn clone(&self) -> SelectiveGapicGeneration
fn clone(&self) -> SelectiveGapicGeneration
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 SelectiveGapicGeneration
impl Debug for SelectiveGapicGeneration
Source§impl Default for SelectiveGapicGeneration
impl Default for SelectiveGapicGeneration
Source§fn default() -> SelectiveGapicGeneration
fn default() -> SelectiveGapicGeneration
Returns the “default value” for a type. Read more
Source§impl Message for SelectiveGapicGeneration
impl Message for SelectiveGapicGeneration
Source§impl PartialEq for SelectiveGapicGeneration
impl PartialEq for SelectiveGapicGeneration
impl StructuralPartialEq for SelectiveGapicGeneration
Auto Trait Implementations§
impl Freeze for SelectiveGapicGeneration
impl RefUnwindSafe for SelectiveGapicGeneration
impl Send for SelectiveGapicGeneration
impl Sync for SelectiveGapicGeneration
impl Unpin for SelectiveGapicGeneration
impl UnwindSafe for SelectiveGapicGeneration
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