pub struct PendingCommunityInvite {
pub community_id: String,
pub bundle_json: String,
pub inviter_npub: String,
pub received_at: i64,
pub expires_at: i64,
pub sent_at: i64,
pub ends_at: i64,
}Expand description
A parked invite awaiting the user’s accept/decline decision.
Fields§
§community_id: String§bundle_json: String§inviter_npub: String§received_at: i64§expires_at: i64Sender-declared NIP-40 expiry (unix secs); 0 = none declared, so permanent.
sent_at: i64When it was sent (unix secs); 0 when parked before this was kept.
ends_at: i64When it leaves the list (unix secs): the sender’s deadline or the recipient’s lifetime, whichever comes first.
Trait Implementations§
Source§impl Clone for PendingCommunityInvite
impl Clone for PendingCommunityInvite
Source§impl Debug for PendingCommunityInvite
impl Debug for PendingCommunityInvite
Auto Trait Implementations§
impl Forget for PendingCommunityInvite
impl Freeze for PendingCommunityInvite
impl Move for PendingCommunityInvite
impl RefUnwindSafe for PendingCommunityInvite
impl Send for PendingCommunityInvite
impl Sync for PendingCommunityInvite
impl Unpin for PendingCommunityInvite
impl UnsafeUnpin for PendingCommunityInvite
impl UnwindSafe for PendingCommunityInvite
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> 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