pub struct Presence<'a> {
pub community_id: &'a str,
pub channel_id: &'a str,
pub shown: bool,
pub npub: &'a str,
pub joined: bool,
pub event_id: &'a str,
pub created_at: u64,
pub invited_by: Option<&'a str>,
pub invited_label: Option<&'a str>,
}Expand description
A Join or Leave, and where its line belongs.
Fields§
§community_id: &'a str§channel_id: &'a strThe channel that keeps the line: the System Messages channel, or the default while
shown is false. A line is always kept, since the member list reads it.
shown: boolWhether the line is drawn: false while the Community has them off, or sends them to a channel this account can’t read.
npub: &'a str§joined: bool§event_id: &'a strThe Join or Leave rumor’s id, which keys its line.
created_at: u64The authenticated inner timestamp, in seconds.
invited_by: Option<&'a str>The invite link’s creator and label, when the joiner’s client named them.
invited_label: Option<&'a str>Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Presence<'a>
impl<'a> Freeze for Presence<'a>
impl<'a> Move for Presence<'a>
impl<'a> RefUnwindSafe for Presence<'a>
impl<'a> Send for Presence<'a>
impl<'a> Sync for Presence<'a>
impl<'a> Unpin for Presence<'a>
impl<'a> UnsafeUnpin for Presence<'a>
impl<'a> UnwindSafe for Presence<'a>
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