pub struct NextWorkResult {
pub result_version: u32,
pub scope: WorkScope,
pub capabilities: BTreeSet<String>,
pub limit: usize,
pub eligible_count: usize,
pub in_scope_count: usize,
pub candidates: Vec<ScopedCandidate>,
pub outside_scope: OutsideScope,
pub advisories: Vec<Advisory>,
}Expand description
Versioned next result: global ranking, then scope, then limit.
Fields§
§result_version: u32Shape version; see NEXT_RESULT_VERSION.
scope: WorkScopeResolved scope that selected candidates.
capabilities: BTreeSet<String>Capabilities used for eligibility; distinct from scope membership.
limit: usizeMaximum number of returned candidates, applied after scope filtering.
eligible_count: usizeReady, capability-eligible work across the whole workspace.
in_scope_count: usizeEligible work inside the scope before the limit.
candidates: Vec<ScopedCandidate>In-scope candidates in global rank order, truncated to limit.
outside_scope: OutsideScopeEligible work excluded by scope.
advisories: Vec<Advisory>Advice for the actor the caller named, such as work it already holds; it never filters or reorders candidates, and is absent when no actor was named or no advice applies.
Trait Implementations§
Source§impl Clone for NextWorkResult
impl Clone for NextWorkResult
Source§impl Debug for NextWorkResult
impl Debug for NextWorkResult
Source§impl<'de> Deserialize<'de> for NextWorkResult
impl<'de> Deserialize<'de> for NextWorkResult
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 NextWorkResult
impl RefUnwindSafe for NextWorkResult
impl Send for NextWorkResult
impl Sync for NextWorkResult
impl Unpin for NextWorkResult
impl UnsafeUnpin for NextWorkResult
impl UnwindSafe for NextWorkResult
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