pub struct InstanceMetadata {
pub region: &'static str,
pub availability_zone: String,
pub instance_id: String,
pub account_id: String,
pub ami_id: String,
pub instance_type: String,
pub local_hostname: String,
pub hostname: String,
pub public_hostname: Option<String>,
}
Expand description
InstanceMetadata
holds the fetched instance metadata. Fields
on this struct may be incomplete if AWS has updated the fields
or if they haven’t been explicitly provided.
Fields§
§region: &'static str
AWS Region - always available
availability_zone: String
AWS Availability Zone - always available
instance_id: String
AWS Instance Id - always available
account_id: String
AWS Account Id - always available, marked as Internal Only per: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-data-categories.html
ami_id: String
AWS AMS Id - always available
instance_type: String
AWS Instance Type - always available
local_hostname: String
AWS Instance Local Hostname - always available
hostname: String
AWS Instance Hostname - always available
public_hostname: Option<String>
AWS Instance Public Hostname - optionally available
Trait Implementations§
Source§impl Clone for InstanceMetadata
impl Clone for InstanceMetadata
Source§fn clone(&self) -> InstanceMetadata
fn clone(&self) -> InstanceMetadata
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 InstanceMetadata
impl Debug for InstanceMetadata
Auto Trait Implementations§
impl Freeze for InstanceMetadata
impl RefUnwindSafe for InstanceMetadata
impl Send for InstanceMetadata
impl Sync for InstanceMetadata
impl Unpin for InstanceMetadata
impl UnwindSafe for InstanceMetadata
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