pub struct SessionEntry {
pub agent: String,
pub session: Option<String>,
pub address: String,
pub exact: bool,
pub project: Option<String>,
pub role: Option<String>,
pub repo: Option<String>,
pub branch: Option<String>,
pub activity: Option<String>,
pub status: String,
pub online: bool,
pub last_seen: Option<String>,
}Expand description
One session as list_sessions reports it: addressable, with its
discovery labels. Two sessions may share every label and still be two
entries, because the address differs.
Fields§
§agent: String§session: Option<String>Absent for the shared session.
address: StringWhat to put in to (or ask_agent’s to) to reach this session.
agent/session for a named one; the bare agent for the shared
session — and see exact before treating that as private.
exact: boolTrue when address reaches this window and no other. False for
the shared session, whose address is the bare agent name: that is a
broadcast to every window of that agent, named ones included, so it
is the wrong place to send a private instruction. There is no address
that reaches the shared session alone.
project: Option<String>§role: Option<String>§repo: Option<String>§branch: Option<String>§activity: Option<String>§status: StringOne of active, idle, busy, blocked, offline.
online: bool§last_seen: Option<String>Trait Implementations§
Source§impl Debug for SessionEntry
impl Debug for SessionEntry
Source§impl JsonSchema for SessionEntry
impl JsonSchema for SessionEntry
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SessionEntry
impl RefUnwindSafe for SessionEntry
impl Send for SessionEntry
impl Sync for SessionEntry
impl Unpin for SessionEntry
impl UnsafeUnpin for SessionEntry
impl UnwindSafe for SessionEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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