#[non_exhaustive]pub struct GetPartnerMetadataRequest {
pub instance: String,
pub namespaces: Option<String>,
pub project: String,
pub zone: String,
/* private fields */
}Available on crate feature
instances only.Expand description
Synthetic request message for the getPartnerMetadata() method.
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.instance: StringName of the instance scoping this request.
namespaces: Option<String>Comma separated partner metadata namespaces.
project: StringProject ID for this request.
zone: StringThe name of the zone for this request.
Implementations§
Source§impl GetPartnerMetadataRequest
impl GetPartnerMetadataRequest
pub fn new() -> Self
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_namespaces<T>(self, v: T) -> Self
pub fn set_namespaces<T>(self, v: T) -> Self
Sets the value of namespaces.
§Example
ⓘ
let x = GetPartnerMetadataRequest::new().set_namespaces("example");Sourcepub fn set_or_clear_namespaces<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_namespaces<T>(self, v: Option<T>) -> Self
Sets or clears the value of namespaces.
§Example
ⓘ
let x = GetPartnerMetadataRequest::new().set_or_clear_namespaces(Some("example"));
let x = GetPartnerMetadataRequest::new().set_or_clear_namespaces(None::<String>);Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for GetPartnerMetadataRequest
impl Clone for GetPartnerMetadataRequest
Source§fn clone(&self) -> GetPartnerMetadataRequest
fn clone(&self) -> GetPartnerMetadataRequest
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 GetPartnerMetadataRequest
impl Debug for GetPartnerMetadataRequest
Source§impl Default for GetPartnerMetadataRequest
impl Default for GetPartnerMetadataRequest
Source§fn default() -> GetPartnerMetadataRequest
fn default() -> GetPartnerMetadataRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for GetPartnerMetadataRequest
Auto Trait Implementations§
impl Freeze for GetPartnerMetadataRequest
impl RefUnwindSafe for GetPartnerMetadataRequest
impl Send for GetPartnerMetadataRequest
impl Sync for GetPartnerMetadataRequest
impl Unpin for GetPartnerMetadataRequest
impl UnsafeUnpin for GetPartnerMetadataRequest
impl UnwindSafe for GetPartnerMetadataRequest
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