pub enum Joiner {
NewPerson {
name: String,
circle: JoiningCircle,
},
MemberKeys {
circle: JoiningCircle,
},
OwnDevice,
}Expand description
Who a join request is for (§13.2). The invite’s kind fixes which a request
may carry, and a pairing takes OwnDevice alone.
Variants§
NewPerson
A new person, with the name they typed: the admin sees it with the request, and the admission records it for the app’s joining write.
Fields
circle: JoiningCircleThe circle the admission makes for them.
MemberKeys
An existing member, whose profile already has a name: the request carries none, and a circle to replace the private one they can no longer read.
Fields
circle: JoiningCircleThe circle the recovery makes for them.
OwnDevice
The member’s own new device, asking one of their devices to pair it: the request carries no name.
Implementations§
Source§impl Joiner
impl Joiner
Sourcepub fn admits(&self) -> Option<InviteAdmits>
pub fn admits(&self) -> Option<InviteAdmits>
What the invite this request answers admits; none for a member’s own device, which no invite has.
Sourcepub fn person(&self) -> Option<&str>
pub fn person(&self) -> Option<&str>
The name the request carries, which a new person typed; none for a member’s keys and for a member’s own device.
Sourcepub fn circle(&self) -> Option<&JoiningCircle>
pub fn circle(&self) -> Option<&JoiningCircle>
The circle the request makes; none for a member’s own device.