pub struct Placement {
pub app: String,
pub process_group: Option<String>,
pub public_ip: Option<Ipv6Addr>,
pub private_ip: Ipv6Addr,
pub allocation: String,
pub machine: Option<Machine>,
pub location: Location,
}Expand description
Details how the current process is running in the Fly.io runtime environment.
Fields§
§app: StringThe Fly.io application name ($FLY_APP_NAME).
process_group: Option<String>The name of the process group associated with this Fly.io machine
($FLY_PROCESS_GROUP).
public_ip: Option<Ipv6Addr>The public IPv6 address for this Fly.io machine ($FLY_PUBLIC_IP).
private_ip: Ipv6AddrThe private IPv6 address for this Fly.io machine ($FLY_PRIVATE_IP).
allocation: StringThe machine ID for Fly.io “Apps v2”, or the Nomad allocation
ID for legacy apps ($FLY_ALLOC_ID).
machine: Option<Machine>Details of the Fly.io machine running this process.
location: LocationThe Fly.io region where the process is being run
($FLY_REGION).
See the region() method for more convenient access.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Placement
impl<'de> Deserialize<'de> for Placement
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 Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnwindSafe for Placement
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