#[non_exhaustive]pub struct InstanceInfo {
pub display_name: String,
pub uri: String,
pub interface: String,
pub network_uri: String,
pub internal_ip: String,
pub external_ip: String,
pub network_tags: Vec<String>,
pub service_account: String,
pub psc_network_attachment_uri: String,
pub running: bool,
pub status: Status,
/* private fields */
}Expand description
For display only. Metadata associated with a Compute Engine instance.
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.display_name: StringName of a Compute Engine instance.
uri: StringURI of a Compute Engine instance.
interface: StringName of the network interface of a Compute Engine instance.
network_uri: StringURI of a Compute Engine network.
internal_ip: StringInternal IP address of the network interface.
external_ip: StringExternal IP address of the network interface.
Network tags configured on the instance.
service_account: String👎Deprecated
Service account authorized for the instance.
psc_network_attachment_uri: StringURI of the PSC network attachment the NIC is attached to (if relevant).
running: bool👎Deprecated
Indicates whether the Compute Engine instance is running.
Deprecated: use the status field instead.
status: StatusThe status of the instance.
Implementations§
Source§impl InstanceInfo
impl InstanceInfo
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_interface<T: Into<String>>(self, v: T) -> Self
pub fn set_interface<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_network_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_network_uri<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_internal_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_internal_ip<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_external_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_external_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of network_tags.
§Example
ⓘ
let x = InstanceInfo::new().set_network_tags(["a", "b", "c"]);Sourcepub fn set_service_account<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of service_account.
§Example
ⓘ
let x = InstanceInfo::new().set_service_account("example");Sourcepub fn set_psc_network_attachment_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_psc_network_attachment_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of psc_network_attachment_uri.
§Example
ⓘ
let x = InstanceInfo::new().set_psc_network_attachment_uri("example");Sourcepub fn set_running<T: Into<bool>>(self, v: T) -> Self
👎Deprecated
pub fn set_running<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for InstanceInfo
impl Clone for InstanceInfo
Source§fn clone(&self) -> InstanceInfo
fn clone(&self) -> InstanceInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstanceInfo
impl Debug for InstanceInfo
Source§impl Default for InstanceInfo
impl Default for InstanceInfo
Source§fn default() -> InstanceInfo
fn default() -> InstanceInfo
Returns the “default value” for a type. Read more
Source§impl Message for InstanceInfo
impl Message for InstanceInfo
Source§impl PartialEq for InstanceInfo
impl PartialEq for InstanceInfo
Source§fn eq(&self, other: &InstanceInfo) -> bool
fn eq(&self, other: &InstanceInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceInfo
Auto Trait Implementations§
impl Freeze for InstanceInfo
impl RefUnwindSafe for InstanceInfo
impl Send for InstanceInfo
impl Sync for InstanceInfo
impl Unpin for InstanceInfo
impl UnsafeUnpin for InstanceInfo
impl UnwindSafe for InstanceInfo
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