pub struct AcquireRequest {
pub holder: Holder,
pub profile: ProfileSpec,
pub kind: LeaseKind,
pub label: String,
pub cwd: Option<String>,
pub wait_timeout_secs: u64,
}Expand description
Body of POST /leases.
Fields§
§holder: HolderSession asking for the lease.
profile: ProfileSpecResources to reserve.
kind: LeaseKindHow the lease shares the machine.
label: StringWhat the lease is for, usually the command that will run.
cwd: Option<String>Working directory of the command; part of what makes runs similar.
wait_timeout_secs: u64How long the daemon may hold the request open waiting for the lease to become active.
Trait Implementations§
Source§impl Clone for AcquireRequest
impl Clone for AcquireRequest
Source§impl Debug for AcquireRequest
impl Debug for AcquireRequest
Source§impl<'de> Deserialize<'de> for AcquireRequest
impl<'de> Deserialize<'de> for AcquireRequest
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
Source§impl PartialEq for AcquireRequest
impl PartialEq for AcquireRequest
Source§impl Serialize for AcquireRequest
impl Serialize for AcquireRequest
impl StructuralPartialEq for AcquireRequest
Auto Trait Implementations§
impl Forget for AcquireRequest
impl Freeze for AcquireRequest
impl RefUnwindSafe for AcquireRequest
impl Send for AcquireRequest
impl Sync for AcquireRequest
impl Unpin for AcquireRequest
impl UnsafeUnpin for AcquireRequest
impl UnwindSafe for AcquireRequest
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