pub struct AllocationRequest {
pub id: String,
pub from_supervisor: String,
pub reason: AllocationReason,
pub executors_needed: usize,
pub max_duration_ms: u64,
pub priority: i32,
pub created_at: DateTime<Utc>,
}Expand description
Request for executor allocation.
Fields§
§id: StringRequest ID
from_supervisor: StringRequesting supervisor
reason: AllocationReasonReason
executors_needed: usizeNumber of executors needed
max_duration_ms: u64Max duration in ms
priority: i32Priority (higher = more urgent)
created_at: DateTime<Utc>Created at
Implementations§
Source§impl AllocationRequest
impl AllocationRequest
Trait Implementations§
Source§impl Clone for AllocationRequest
impl Clone for AllocationRequest
Source§fn clone(&self) -> AllocationRequest
fn clone(&self) -> AllocationRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 AllocationRequest
impl Debug for AllocationRequest
Source§impl<'de> Deserialize<'de> for AllocationRequest
impl<'de> Deserialize<'de> for AllocationRequest
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 AllocationRequest
impl RefUnwindSafe for AllocationRequest
impl Send for AllocationRequest
impl Sync for AllocationRequest
impl Unpin for AllocationRequest
impl UnsafeUnpin for AllocationRequest
impl UnwindSafe for AllocationRequest
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