pub struct WorkGroup {
pub id: String,
pub label: Option<String>,
pub kind: String,
pub declared_id: Option<String>,
pub session: Option<String>,
}Expand description
The unit of work an action belongs to: an issue, a task, an agent run.
Not a group of actions applied as one; that is tilo_resource::ActionGroup.
Fields§
§id: StringStable key shared by every action in the work unit.
label: Option<String>What the work is called, for people to read: an issue’s title, what an
agent session was asked to do, or the title the agent gave its work
(“Fill Jane’s application”). Never the group itself, which a host
decides on its own. None when nothing says so.
kind: StringOpen vocabulary: issue, task, agent-run, session, …
declared_id: Option<String>The id the caller itself gave the work, when it named one: the run an
agent says each of its calls is a step of. A host’s own Self::id
may span several of them (every call of one connection), so this is
what tells the caller’s runs apart in history; never the group itself.
session: Option<String>The session’s own name, as the client’s harness names it (“Office
Hours”): what an agent that works through a connection of its own is
shown by, where the session is what people see it as. Display only,
like the label; None for work that names no session.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorkGroup
impl<'de> Deserialize<'de> for WorkGroup
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>,
impl Eq for WorkGroup
impl StructuralPartialEq for WorkGroup
Auto Trait Implementations§
impl Forget for WorkGroup
impl Freeze for WorkGroup
impl Move for WorkGroup
impl RefUnwindSafe for WorkGroup
impl Send for WorkGroup
impl Sync for WorkGroup
impl Unpin for WorkGroup
impl UnsafeUnpin for WorkGroup
impl UnwindSafe for WorkGroup
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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