#[non_exhaustive]pub struct GetGuestAttributesRequest {
pub instance: String,
pub project: String,
pub query_path: Option<String>,
pub variable_key: Option<String>,
pub zone: String,
/* private fields */
}Available on crate feature
instances only.Expand description
Synthetic request message for the getGuestAttributes() 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.
project: StringProject ID for this request.
query_path: Option<String>Specifies the guest attributes path to be queried.
variable_key: Option<String>Specifies the key for the guest attributes entry.
zone: StringThe name of the zone for this request.
Implementations§
Source§impl GetGuestAttributesRequest
impl GetGuestAttributesRequest
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_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_query_path<T>(self, v: T) -> Self
pub fn set_query_path<T>(self, v: T) -> Self
Sets the value of query_path.
§Example
ⓘ
let x = GetGuestAttributesRequest::new().set_query_path("example");Sourcepub fn set_or_clear_query_path<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_query_path<T>(self, v: Option<T>) -> Self
Sets or clears the value of query_path.
§Example
ⓘ
let x = GetGuestAttributesRequest::new().set_or_clear_query_path(Some("example"));
let x = GetGuestAttributesRequest::new().set_or_clear_query_path(None::<String>);Sourcepub fn set_variable_key<T>(self, v: T) -> Self
pub fn set_variable_key<T>(self, v: T) -> Self
Sets the value of variable_key.
§Example
ⓘ
let x = GetGuestAttributesRequest::new().set_variable_key("example");Sourcepub fn set_or_clear_variable_key<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_variable_key<T>(self, v: Option<T>) -> Self
Sets or clears the value of variable_key.
§Example
ⓘ
let x = GetGuestAttributesRequest::new().set_or_clear_variable_key(Some("example"));
let x = GetGuestAttributesRequest::new().set_or_clear_variable_key(None::<String>);Trait Implementations§
Source§impl Clone for GetGuestAttributesRequest
impl Clone for GetGuestAttributesRequest
Source§fn clone(&self) -> GetGuestAttributesRequest
fn clone(&self) -> GetGuestAttributesRequest
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 GetGuestAttributesRequest
impl Debug for GetGuestAttributesRequest
Source§impl Default for GetGuestAttributesRequest
impl Default for GetGuestAttributesRequest
Source§fn default() -> GetGuestAttributesRequest
fn default() -> GetGuestAttributesRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for GetGuestAttributesRequest
Auto Trait Implementations§
impl Freeze for GetGuestAttributesRequest
impl RefUnwindSafe for GetGuestAttributesRequest
impl Send for GetGuestAttributesRequest
impl Sync for GetGuestAttributesRequest
impl Unpin for GetGuestAttributesRequest
impl UnwindSafe for GetGuestAttributesRequest
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