pub struct InviteInfo {
pub metadata: CodeMetadata,
pub store_name: String,
pub inviter: String,
pub admits: InviteAdmits,
pub expires_at: SystemTime,
pub shared_with: Option<SharedWith>,
}Expand description
What an invite code tells before connecting: as typed or scanned, and as a join under way saved it (§13.2).
Fields§
§metadata: CodeMetadataThe code’s shared metadata, including the sign-in the join needs.
store_name: StringThe store name at invitation creation.
inviter: StringThe inviting admin’s name, as their app gave it when it made the invite, for the joining person’s screens to say whom to tell the code and whom they wait for (§13.2).
admits: InviteAdmitsWhether the invite admits a new person, whose join request carries the name they type, or a member’s new keys, whose carries none.
expires_at: SystemTimeWhen the invite ends, by the inviting device’s clock, to the second: the joining device sends no first request after it (§13.2).
On Dropbox and OneDrive, the account the inviting device shared the folder with: the app can name it before anything connects, and the join refuses a sign-in to another account (§13.2). None on S3 and CloudKit.
Trait Implementations§
Source§impl Clone for InviteInfo
impl Clone for InviteInfo
Source§impl Debug for InviteInfo
impl Debug for InviteInfo
impl Eq for InviteInfo
Source§impl PartialEq for InviteInfo
impl PartialEq for InviteInfo
impl StructuralPartialEq for InviteInfo
Auto Trait Implementations§
impl Freeze for InviteInfo
impl RefUnwindSafe for InviteInfo
impl Send for InviteInfo
impl Sync for InviteInfo
impl Unpin for InviteInfo
impl UnsafeUnpin for InviteInfo
impl UnwindSafe for InviteInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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