pub struct SharedWith { /* private fields */ }Expand description
The account an invite shared the store’s folder with, as the inviting device recorded it when the provider granted the share.
Implementations§
Sourcepub fn new(address: &str, id: Option<String>) -> Result<Self, StorageError>
pub fn new(address: &str, id: Option<String>) -> Result<Self, StorageError>
The share’s account: the address the invite was sent to, and the provider’s id for the account when the share reports one. A share sent to an address with no account yet has no id.
Sourcepub fn address(&self) -> &str
pub fn address(&self) -> &str
The address the invite was sent to, which names the account to the person.
Sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The provider’s id for the account, when the share named one (Dropbox’s
account_id, which Dropbox documents as the account’s unique and stable
ID in users/get_current_account and, as UserInfo.account_id, in a
folder’s member list).
Sourcepub fn is(&self, signed_in: &ProviderAccount) -> bool
pub fn is(&self, signed_in: &ProviderAccount) -> bool
Whether signed_in is the account the folder was shared with: by the
provider’s id when the share named one, so an alias or secondary
address of the account is never read as another account; else by
primary address.
Trait Implementations§
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>,
Auto Trait Implementations§
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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<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