pub struct Machine {
pub id: String,
pub image: Option<String>,
pub version: String,
pub memory: Option<usize>,
}Expand description
Information about the Fly.io Machine on which the current process is running.
Fields§
§id: StringThe unique ID of this Fly.io Machine.
Fly.io exposes this value to VM’s as $FLY_MACHINE_ID.
image: Option<String>The name of the Docker image running this container.
Fly.io exposes this value to VM’s as $FLY_IMAGE_REF.
version: StringThe version assigned to a specific Fly.io Machine configuration.
Fly.io exposes this value to VM’s as $FLY_MACHINE_VERSION.
memory: Option<usize>The memory allocated to the Fly.io Machine, in MB.
Fly.io exposes this value to VM’s as $FLY_VM_MEMORY_MB.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Machine
impl<'de> Deserialize<'de> for Machine
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 RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl UnwindSafe for Machine
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