pub struct StorageInvitation { /* private fields */ }Expand description
Provider information carried inside coven’s encrypted invite code. Native share tokens admit the recipient; they never identify grants for revocation.
Implementations§
Source§impl StorageInvitation
impl StorageInvitation
Sourcepub fn for_account(location: StorageConfig) -> Result<Self, StorageError>
pub fn for_account(location: StorageConfig) -> Result<Self, StorageError>
An already granted account location, or Dropbox’s shared namespace to
mount. An S3 admin uses this after making the member’s key in the console.
CloudKit instead needs the share URL returned by grant_access.
Sourcepub fn location(&self) -> &StorageConfig
pub fn location(&self) -> &StorageConfig
Nonsecret location used to construct the joining account’s adapter.
Sourcepub fn encode(&self) -> Result<SecretBytes, StorageError>
pub fn encode(&self) -> Result<SecretBytes, StorageError>
Encode as the database records a granted invitation, with bytes erased on drop. An invite code packs it instead (format.md D13).
Sourcepub fn decode(bytes: &[u8]) -> Result<Self, StorageError>
pub fn decode(bytes: &[u8]) -> Result<Self, StorageError>
Decode and validate an invitation the database recorded.
Trait Implementations§
Source§impl Clone for StorageInvitation
impl Clone for StorageInvitation
Source§fn clone(&self) -> StorageInvitation
fn clone(&self) -> StorageInvitation
Returns a duplicate of the value. Read more
1.0.0 · 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 StorageInvitation
impl Debug for StorageInvitation
Source§impl<'de> Deserialize<'de> for StorageInvitation
impl<'de> Deserialize<'de> for StorageInvitation
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
Auto Trait Implementations§
impl Freeze for StorageInvitation
impl RefUnwindSafe for StorageInvitation
impl Send for StorageInvitation
impl Sync for StorageInvitation
impl Unpin for StorageInvitation
impl UnsafeUnpin for StorageInvitation
impl UnwindSafe for StorageInvitation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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.