pub struct SessionAccount {
pub nick: String,
pub session_id: String,
pub store_root: Option<String>,
pub product_url: Option<String>,
/* private fields */
}Expand description
One session’s account as handed to its child: nick and capability only.
Fields§
§nick: String§session_id: StringThe provider session key the account is bound to (also given to the session as
M4A_SESSION_ID, so its own inbox commands address the right account).
store_root: Option<String>The account’s own store root (M4A_STORE_ROOT), when m4a-agent reported it.
product_url: Option<String>Messenger product URL the session’s client uses (M4A_PRODUCT_URL), from the node env.
Implementations§
Source§impl SessionAccount
impl SessionAccount
Sourcepub fn attach_reply(&self) -> Value
pub fn attach_reply(&self) -> Value
The only variables the session gets from the node for m4a.
The one-time /m4a/attach reply (the capability travels only in this body).
pub fn env_mutations(&self) -> Vec<EnvMutation>
Trait Implementations§
Source§impl Debug for SessionAccount
impl Debug for SessionAccount
Source§impl Drop for SessionAccount
impl Drop for SessionAccount
Auto Trait Implementations§
impl Freeze for SessionAccount
impl RefUnwindSafe for SessionAccount
impl Send for SessionAccount
impl Sync for SessionAccount
impl Unpin for SessionAccount
impl UnsafeUnpin for SessionAccount
impl UnwindSafe for SessionAccount
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
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