pub struct WhoAmI {
pub agent: String,
pub agent_id: String,
pub team: String,
pub team_id: String,
pub session: Option<String>,
pub project: Option<String>,
pub role: Option<String>,
pub session_identity: Option<SessionIdentity>,
pub default_channel: Option<String>,
pub unread_direct_messages: i64,
pub open_claimed_tasks: i64,
}Fields§
§agent: StringYour agent handle. Other agents address you by this name.
agent_id: String§team: String§team_id: String§session: Option<String>Which of your concurrent working contexts this connection is, taken
from the X-Crew-Session header — usually the repository you are in.
null means the shared session: you sent no header, and your presence,
task claims and locks are not separated from your other sessions.
project: Option<String>Discovery labels this session last published with heartbeat
(project, role). Absent until set, so a client that never labels
its windows sees exactly the response it saw before.
role: Option<String>§session_identity: Option<SessionIdentity>Set when this connection authenticated with a session credential:
the session label above is then proven, not merely asserted in a
header. null means a plain agent token with a header label, which
is still how every existing client connects.
default_channel: Option<String>Channel this session posts to when post_message is called with
neither channel nor to — the one named after your session, if the
team has one. null means there is none, so you must always say where
a message goes.
unread_direct_messages: i64Number of unread direct messages waiting for you.
open_claimed_tasks: i64Tasks currently claimed by you and not yet completed.
Trait Implementations§
Source§impl JsonSchema for WhoAmI
impl JsonSchema for WhoAmI
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 WhoAmI
impl RefUnwindSafe for WhoAmI
impl Send for WhoAmI
impl Sync for WhoAmI
impl Unpin for WhoAmI
impl UnsafeUnpin for WhoAmI
impl UnwindSafe for WhoAmI
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
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