pub struct PlanAgent {Show 16 fields
pub agent_id: String,
pub plan_id: String,
pub version: u64,
pub directive_id: String,
pub slot: String,
pub state: &'static str,
pub release_id: Option<String>,
pub released_at: Option<String>,
pub reason_code: Option<String>,
pub reason: Option<String>,
pub title: Option<String>,
pub goal: Option<String>,
pub role: Option<String>,
pub brief: Option<String>,
pub folder: Option<String>,
pub changed: bool,
}Expand description
One local agent’s directive for the plan version.
Fields§
§agent_id: String§plan_id: String§version: u64The plan version this entry answers (the <version> of
directive_id); it never counts for another version.
directive_id: String§slot: StringThe session’s slot, or all for an agent no session names.
state: &'static stroffered (waiting for “Send to agents”), delivered, acked or
refused.
release_id: Option<String>The release id, only while offered: the one argument of
lean-ctx cloud plan release (as release_id on stdin).
released_at: Option<String>When the person released it; null while offered.
reason_code: Option<String>§reason: Option<String>The agent’s own words (local only, never sent to Cloud).
title: Option<String>What this agent gets on release, from the verified body: the plan’s
title and goal, its part’s role, brief and folder (null for slot
all, which no part names). null for a reader without text.
goal: Option<String>§role: Option<String>§brief: Option<String>§folder: Option<String>§changed: boolWhether the version changed this agent’s part (its session’s
changed; false for slot all).
Trait Implementations§
impl Eq for PlanAgent
impl StructuralPartialEq for PlanAgent
Auto Trait Implementations§
impl Forget for PlanAgent
impl Freeze for PlanAgent
impl Move for PlanAgent
impl RefUnwindSafe for PlanAgent
impl Send for PlanAgent
impl Sync for PlanAgentwhere
RawVecInner: Sync,
impl Unpin for PlanAgent
impl UnsafeUnpin for PlanAgent
impl UnwindSafe for PlanAgent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more