pub struct ReadReceiptBuilder<'a> { /* private fields */ }
Implementations§
Source§impl ReadReceiptBuilder<'_>
impl ReadReceiptBuilder<'_>
Sourcepub fn add(
self,
event_id: &EventId,
user_id: &UserId,
tyype: ReceiptType,
thread: ReceiptThread,
) -> Self
pub fn add( self, event_id: &EventId, user_id: &UserId, tyype: ReceiptType, thread: ReceiptThread, ) -> Self
Add a single read receipt to the event.
Sourcepub fn add_with_timestamp(
self,
event_id: &EventId,
user_id: &UserId,
tyype: ReceiptType,
thread: ReceiptThread,
ts: Option<MilliSecondsSinceUnixEpoch>,
) -> Self
pub fn add_with_timestamp( self, event_id: &EventId, user_id: &UserId, tyype: ReceiptType, thread: ReceiptThread, ts: Option<MilliSecondsSinceUnixEpoch>, ) -> Self
Add a single read receipt to the event, with an optional timestamp.
Sourcepub fn into_content(self) -> ReceiptEventContent
pub fn into_content(self) -> ReceiptEventContent
Finalize the builder into the receipt event content.
Sourcepub fn into_event(self) -> EventBuilder<ReceiptEventContent>
pub fn into_event(self) -> EventBuilder<ReceiptEventContent>
Finalize the builder into an event builder.
Auto Trait Implementations§
impl<'a> Freeze for ReadReceiptBuilder<'a>
impl<'a> RefUnwindSafe for ReadReceiptBuilder<'a>
impl<'a> Send for ReadReceiptBuilder<'a>
impl<'a> Sync for ReadReceiptBuilder<'a>
impl<'a> Unpin for ReadReceiptBuilder<'a>
impl<'a> UnwindSafe for ReadReceiptBuilder<'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
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>