pub struct AgentInfo {
pub name: String,
pub display_name: Option<String>,
pub session: Option<String>,
pub status: String,
pub repo: Option<String>,
pub branch: Option<String>,
pub activity: Option<String>,
pub last_seen: Option<String>,
pub online: bool,
pub sessions: Vec<AgentSession>,
}Fields§
§name: String§display_name: Option<String>§session: Option<String>Which working context the fields below describe — usually a repository
name. Absent for the shared session, used by clients that send no
X-Crew-Session header, so a roster of teammates who use no sessions
serialises exactly as it did before sessions existed.
Which row the summary describes, in order: a live session before a
dead one, a named session before the shared one, then the most
recently updated. Live comes first deliberately — a named session that
died days ago should not outrank a shared row that is active now — so
the shared row can win while every named session is offline. Read
sessions when you need all of them; this is one of several.
status: StringOne of active, idle, offline. offline means the presence lease
expired, i.e. the agent has not sent a heartbeat recently.
repo: Option<String>§branch: Option<String>§activity: Option<String>Free-text description of what this agent is currently doing.
last_seen: Option<String>§online: boolTrue when any of this agent’s sessions has a live presence lease.
sessions: Vec<AgentSession>Every working context this agent has open, most recently active first. Absent when there is only one — the fields above already describe it. A teammate with several entries here is working in several repositories at once, and each one claims tasks and holds locks independently.
Trait Implementations§
Source§impl JsonSchema for AgentInfo
impl JsonSchema for AgentInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AgentInfo
impl RefUnwindSafe for AgentInfo
impl Send for AgentInfo
impl Sync for AgentInfo
impl Unpin for AgentInfo
impl UnsafeUnpin for AgentInfo
impl UnwindSafe for AgentInfo
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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