pub struct Ec2Instance {Show 13 fields
pub instance_id: String,
pub image_id: String,
pub instance_type: String,
pub state: String,
pub private_ip: String,
pub public_ip: Option<String>,
pub subnet_id: Option<String>,
pub vpc_id: Option<String>,
pub key_name: Option<String>,
pub security_group_ids: Vec<String>,
pub availability_zone: String,
pub launch_time: String,
pub container_id: Option<String>,
}Expand description
A single EC2 instance as surfaced by GET /_fakecloud/ec2/instances.
One EC2 instance’s control-plane view, plus the backing container handle
when the instance is backed by a real container runtime (Docker container
id or Kubernetes Pod name); container_id is None in metadata-only mode.
Fields§
§instance_id: String§image_id: String§instance_type: String§state: StringEC2 state name: pending | running | shutting-down |
terminated | stopping | stopped.
private_ip: String§public_ip: Option<String>§subnet_id: Option<String>§vpc_id: Option<String>§key_name: Option<String>§security_group_ids: Vec<String>§availability_zone: String§launch_time: String§container_id: Option<String>Backing container id (Docker) or Pod name (k8s); None when the
instance runs metadata-only (no container runtime available).
Trait Implementations§
Source§impl Clone for Ec2Instance
impl Clone for Ec2Instance
Source§fn clone(&self) -> Ec2Instance
fn clone(&self) -> Ec2Instance
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 Ec2Instance
impl Debug for Ec2Instance
Source§impl<'de> Deserialize<'de> for Ec2Instance
impl<'de> Deserialize<'de> for Ec2Instance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Ec2Instance
impl RefUnwindSafe for Ec2Instance
impl Send for Ec2Instance
impl Sync for Ec2Instance
impl Unpin for Ec2Instance
impl UnsafeUnpin for Ec2Instance
impl UnwindSafe for Ec2Instance
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