#[non_exhaustive]pub struct GuestAttributes {
pub kind: Option<String>,
pub query_path: Option<String>,
pub query_value: Option<GuestAttributesValue>,
pub self_link: Option<String>,
pub variable_key: Option<String>,
pub variable_value: Option<String>,
/* private fields */
}Available on crate feature
instances only.Expand description
A guest attributes entry.
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.kind: Option<String>Output only. [Output Only] Type of the resource. Alwayscompute#guestAttributes for guest attributes entry.
query_path: Option<String>The path to be queried. This can be the default namespace (‘’) or a nested namespace (‘/’) or a specified key (’/').
query_value: Option<GuestAttributesValue>Output only. [Output Only] The value of the requested queried path.
self_link: Option<String>Output only. [Output Only] Server-defined URL for this resource.
variable_key: Option<String>The key to search for.
variable_value: Option<String>Output only. [Output Only] The value found for the requested key.
Implementations§
Source§impl GuestAttributes
impl GuestAttributes
pub fn new() -> Self
Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_query_path<T>(self, v: T) -> Self
pub fn set_query_path<T>(self, v: T) -> Self
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 = GuestAttributes::new().set_or_clear_query_path(Some("example"));
let x = GuestAttributes::new().set_or_clear_query_path(None::<String>);Sourcepub fn set_query_value<T>(self, v: T) -> Selfwhere
T: Into<GuestAttributesValue>,
pub fn set_query_value<T>(self, v: T) -> Selfwhere
T: Into<GuestAttributesValue>,
Sets the value of query_value.
§Example
ⓘ
use google_cloud_compute_v1::model::GuestAttributesValue;
let x = GuestAttributes::new().set_query_value(GuestAttributesValue::default()/* use setters */);Sourcepub fn set_or_clear_query_value<T>(self, v: Option<T>) -> Selfwhere
T: Into<GuestAttributesValue>,
pub fn set_or_clear_query_value<T>(self, v: Option<T>) -> Selfwhere
T: Into<GuestAttributesValue>,
Sets or clears the value of query_value.
§Example
ⓘ
use google_cloud_compute_v1::model::GuestAttributesValue;
let x = GuestAttributes::new().set_or_clear_query_value(Some(GuestAttributesValue::default()/* use setters */));
let x = GuestAttributes::new().set_or_clear_query_value(None::<GuestAttributesValue>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
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 = GuestAttributes::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 = GuestAttributes::new().set_or_clear_variable_key(Some("example"));
let x = GuestAttributes::new().set_or_clear_variable_key(None::<String>);Sourcepub fn set_variable_value<T>(self, v: T) -> Self
pub fn set_variable_value<T>(self, v: T) -> Self
Sets the value of variable_value.
§Example
ⓘ
let x = GuestAttributes::new().set_variable_value("example");Sourcepub fn set_or_clear_variable_value<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_variable_value<T>(self, v: Option<T>) -> Self
Sets or clears the value of variable_value.
§Example
ⓘ
let x = GuestAttributes::new().set_or_clear_variable_value(Some("example"));
let x = GuestAttributes::new().set_or_clear_variable_value(None::<String>);Trait Implementations§
Source§impl Clone for GuestAttributes
impl Clone for GuestAttributes
Source§fn clone(&self) -> GuestAttributes
fn clone(&self) -> GuestAttributes
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 GuestAttributes
impl Debug for GuestAttributes
Source§impl Default for GuestAttributes
impl Default for GuestAttributes
Source§fn default() -> GuestAttributes
fn default() -> GuestAttributes
Returns the “default value” for a type. Read more
Source§impl Message for GuestAttributes
impl Message for GuestAttributes
Source§impl PartialEq for GuestAttributes
impl PartialEq for GuestAttributes
impl StructuralPartialEq for GuestAttributes
Auto Trait Implementations§
impl Freeze for GuestAttributes
impl RefUnwindSafe for GuestAttributes
impl Send for GuestAttributes
impl Sync for GuestAttributes
impl Unpin for GuestAttributes
impl UnwindSafe for GuestAttributes
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