pub struct ObjectInvitationsManager { /* private fields */ }
Implementations§
Source§impl ObjectInvitationsManager
impl ObjectInvitationsManager
pub fn is_invited(&self) -> bool
Sourcepub fn can_invite(&self, user_id: String) -> Result<bool>
pub fn can_invite(&self, user_id: String) -> Result<bool>
whether
pub fn has_accepted(&self) -> bool
pub fn has_declined(&self) -> bool
pub fn invited(&self) -> Vec<String>
pub fn accepted(&self) -> Vec<String>
pub fn declined(&self) -> Vec<String>
pub fn has_invitations(&self) -> bool
pub async fn invite(&self, user_id: String) -> Result<String>
pub fn subscribe_stream(&self) -> impl Stream<Item = bool>
pub fn subscribe(&self) -> Receiver<()>
pub async fn reload(&self) -> Result<Self>
Methods from Deref<Target = InvitationsManager>§
pub fn event_id(&self) -> OwnedEventId
pub async fn invite_entries( &self, ) -> Result<HashMap<OwnedUserId, ExplicitInvite>, Error>
pub fn stats(&self) -> &InviteStats
pub fn update_key(&self) -> ExecuteReference
pub async fn save(&self) -> Result<Vec<ExecuteReference>, Error>
Methods from Deref<Target = InviteStats>§
Sourcepub fn invited(&self) -> &BTreeSet<OwnedUserId>
pub fn invited(&self) -> &BTreeSet<OwnedUserId>
Get field invited
from instance of InviteStats
.
Sourcepub fn accepted(&self) -> &BTreeSet<OwnedUserId>
pub fn accepted(&self) -> &BTreeSet<OwnedUserId>
Get field accepted
from instance of InviteStats
.
Sourcepub fn declined(&self) -> &BTreeSet<OwnedUserId>
pub fn declined(&self) -> &BTreeSet<OwnedUserId>
Get field declined
from instance of InviteStats
.
Trait Implementations§
Source§impl Clone for ObjectInvitationsManager
impl Clone for ObjectInvitationsManager
Source§fn clone(&self) -> ObjectInvitationsManager
fn clone(&self) -> ObjectInvitationsManager
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 Debug for ObjectInvitationsManager
impl Debug for ObjectInvitationsManager
Auto Trait Implementations§
impl Freeze for ObjectInvitationsManager
impl !RefUnwindSafe for ObjectInvitationsManager
impl Send for ObjectInvitationsManager
impl Sync for ObjectInvitationsManager
impl Unpin for ObjectInvitationsManager
impl !UnwindSafe for ObjectInvitationsManager
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,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more