Struct etebase::SignedInvitation
source · pub struct SignedInvitation { /* private fields */ }
Expand description
A signed invitation to join a collection
Implementations§
source§impl SignedInvitation
impl SignedInvitation
sourcepub fn collection(&self) -> &str
pub fn collection(&self) -> &str
The collection uid of the Collection
this invitation is for
sourcepub fn access_level(&self) -> CollectionAccessLevel
pub fn access_level(&self) -> CollectionAccessLevel
The access level offered in this invitation
sourcepub fn sender_username(&self) -> Option<&str>
pub fn sender_username(&self) -> Option<&str>
The username of the inviting user
sourcepub fn sender_pubkey(&self) -> &[u8] ⓘ
pub fn sender_pubkey(&self) -> &[u8] ⓘ
The public key of the inviting user
pub fn from_username(&self) -> Option<&str>
👎Deprecated: This method has been renamed to sender_username() to avoid potential confusion regarding its name
pub fn from_pubkey(&self) -> &[u8] ⓘ
👎Deprecated: This method has been renamed to sender_pubkey() to avoid potential confusion regarding its name
Trait Implementations§
source§impl Clone for SignedInvitation
impl Clone for SignedInvitation
source§fn clone(&self) -> SignedInvitation
fn clone(&self) -> SignedInvitation
Returns a copy 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<'de> Deserialize<'de> for SignedInvitation
impl<'de> Deserialize<'de> for SignedInvitation
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 RefUnwindSafe for SignedInvitation
impl Send for SignedInvitation
impl Sync for SignedInvitation
impl Unpin for SignedInvitation
impl UnwindSafe for SignedInvitation
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