pub struct Ec2Instance {
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,
}Expand description
A single EC2 instance as surfaced by GET /_fakecloud/ec2/instances.
Instances are metadata-faithful today (Docker-backed execution is a
roadmap follow-up), so this mirrors the control-plane view without
leaking runtime-internal fields.
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: StringTrait 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