pub struct NewInvite { /* private fields */ }Expand description
What the app asks an invite for: whom it admits, how they reach storage, and how long it stays open (§13.2).
Implementations§
Source§impl NewInvite
impl NewInvite
Sourcepub fn person(
role: MemberRole,
access: InviteAccess,
lifetime: InviteLifetime,
inviter: String,
) -> Self
pub fn person( role: MemberRole, access: InviteAccess, lifetime: InviteLifetime, inviter: String, ) -> Self
An invite for a new person, added with role. access is the
provider account to share with or the S3 key made for them; the invite
expires lifetime after it is made; inviter is the inviting admin’s
name, a format name, which the invite carries for the joining
person’s screens (§13.2).
Sourcepub fn member_keys(
member: MemberId,
access: InviteAccess,
lifetime: InviteLifetime,
inviter: String,
) -> Self
pub fn member_keys( member: MemberId, access: InviteAccess, lifetime: InviteLifetime, inviter: String, ) -> Self
An invite for member’s new keys: the member lost every device, and
approval binds the requester’s new keys to their id, keeping its
role, circles and devices. The other fields are those of person.
Auto Trait Implementations§
impl Freeze for NewInvite
impl RefUnwindSafe for NewInvite
impl Send for NewInvite
impl Sync for NewInvite
impl Unpin for NewInvite
impl UnsafeUnpin for NewInvite
impl UnwindSafe for NewInvite
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
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreCreates a shared type from an unshared type.