pub struct AcquireRequest {
pub plan_id: PlanId,
pub caller_id: CallerId,
pub max_count: usize,
pub ids: Option<Vec<String>>,
pub metadata_filter: Option<Map<String, Value>>,
pub ttl: Option<Duration>,
}Expand description
Request bundle for crate::ports::Planner::acquire_cohort.
Public fields mirror the historical positional arguments so callers can
construct it directly or via AcquireRequest::new.
Fields§
§plan_id: PlanId§caller_id: CallerId§max_count: usize§ids: Option<Vec<String>>When set, only these deliverables are considered; each one that is
not leased is reported in Cohort.blocked with a reason code.
metadata_filter: Option<Map<String, Value>>When set, only deliverables whose metadata has every (key, value)
pair (JSON equality) are considered. Non-matches are silently skipped.
ttl: Option<Duration>Requested lease TTL for this call. None uses the planner
default; the planner clamps the value to its configured maximum.
Implementations§
Trait Implementations§
Source§impl Clone for AcquireRequest
impl Clone for AcquireRequest
Auto Trait Implementations§
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