pub struct MachineSessions {
pub id: String,
pub sealed_name: Vec<u8>,
pub public_key: Vec<u8>,
pub cert: Vec<u8>,
pub relay: Option<(SessionId, String)>,
pub sessions: Vec<SessionRecordInfo>,
}Expand description
A machine of the account and its sessions, as AccountReply::Sessions
gives them.
Fields§
§id: StringThe machine’s ID.
sealed_name: Vec<u8>Its display name, sealed to the account.
public_key: Vec<u8>Its public key (Ed25519), which signs its command challenges (#88); empty from a relay older than that.
cert: Vec<u8>The account’s approval of the machine (#133), empty before one.
relay: Option<(SessionId, String)>The relay session it is served on now, and the token a frontend joins
it with; None while it is not connected.
sessions: Vec<SessionRecordInfo>Its sessions.
Trait Implementations§
Source§impl Clone for MachineSessions
impl Clone for MachineSessions
Source§impl Debug for MachineSessions
impl Debug for MachineSessions
Source§impl<'de> Deserialize<'de> for MachineSessions
impl<'de> Deserialize<'de> for MachineSessions
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MachineSessions
Source§impl PartialEq for MachineSessions
impl PartialEq for MachineSessions
Source§impl Serialize for MachineSessions
impl Serialize for MachineSessions
impl StructuralPartialEq for MachineSessions
Auto Trait Implementations§
impl Forget for MachineSessions
impl Freeze for MachineSessions
impl Move for MachineSessions
impl RefUnwindSafe for MachineSessions
impl Send for MachineSessions
impl Sync for MachineSessions
impl Unpin for MachineSessions
impl UnsafeUnpin for MachineSessions
impl UnwindSafe for MachineSessions
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