pub struct RosterMemberDevice {
pub label: String,
pub role: String,
pub principal: String,
pub online: bool,
}Expand description
One device of a RosterMember (#93).
Fields§
§label: StringThe device’s human label.
role: String"primary" | "mirror" — the advisory dial-ordering hint, never a security property.
principal: StringThe device’s stable eid: principal — the SAME vocabulary PeerInfo::principal carries,
and what a per-device allow entry names.
Included where PresencePeer deliberately omits it, because this surface exists to be
ACTED on: an embedder granting or revoking one device of a person needs the handle to name
it, and the alternative is a nickname that does not exist in roster mode.
online: boolWhether the device has a live presence heartbeat. Advisory — absence never blocks a dial, and never removes a dial candidate.
Trait Implementations§
Source§impl Clone for RosterMemberDevice
impl Clone for RosterMemberDevice
Source§fn clone(&self) -> RosterMemberDevice
fn clone(&self) -> RosterMemberDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RosterMemberDevice
impl Debug for RosterMemberDevice
Source§impl Default for RosterMemberDevice
impl Default for RosterMemberDevice
Source§fn default() -> RosterMemberDevice
fn default() -> RosterMemberDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RosterMemberDevice
impl<'de> Deserialize<'de> for RosterMemberDevice
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 RosterMemberDevice
Source§impl PartialEq for RosterMemberDevice
impl PartialEq for RosterMemberDevice
Source§impl Serialize for RosterMemberDevice
impl Serialize for RosterMemberDevice
impl StructuralPartialEq for RosterMemberDevice
Auto Trait Implementations§
impl Freeze for RosterMemberDevice
impl RefUnwindSafe for RosterMemberDevice
impl Send for RosterMemberDevice
impl Sync for RosterMemberDevice
impl Unpin for RosterMemberDevice
impl UnsafeUnpin for RosterMemberDevice
impl UnwindSafe for RosterMemberDevice
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