pub enum RumorProcessingResult {
Show 13 variants
TextMessage(Message),
FileAttachment(Message),
Reaction(Reaction),
TypingIndicator {
profile_id: String,
until: u64,
},
LeaveRequest {
event_id: String,
member_pubkey: String,
},
WebxdcPeerAdvertisement {
event_id: String,
topic_id: String,
node_addr: String,
sender_npub: String,
created_at: u64,
},
WebxdcPeerLeft {
event_id: String,
topic_id: String,
sender_npub: String,
created_at: u64,
},
UnknownEvent(StoredEvent),
PivxPayment {
gift_code: String,
amount_piv: f64,
address: Option<String>,
message_id: String,
event: StoredEvent,
},
WallpaperChanged {
sender_npub: String,
created_at: u64,
url: String,
decryption_key: String,
decryption_nonce: String,
plaintext_hash: Option<String>,
mime: Option<String>,
blur: Option<u8>,
dim: Option<u8>,
event_id: String,
},
Ignored,
DeletionRequest {
target_event_id: String,
},
Edit {
message_id: String,
new_content: String,
edited_at: u64,
emoji_tags: Vec<EmojiTag>,
event: StoredEvent,
},
}Expand description
Result of processing a rumor
Represents the different types of events that can result from processing a rumor. The caller is responsible for storing these results appropriately based on the conversation type.
Variants§
TextMessage(Message)
A text message (with optional reply reference)
FileAttachment(Message)
A file attachment message
Reaction(Reaction)
An emoji reaction to a message
TypingIndicator
A typing indicator update
LeaveRequest
A leave request from a group member (admin should auto-remove them)
Fields
WebxdcPeerAdvertisement
A WebXDC peer advertisement for realtime channels
WebxdcPeerLeft
A WebXDC peer left signal (peer closed their Mini App)
UnknownEvent(StoredEvent)
Unknown event type - stored for future compatibility The frontend will render this as “Unknown Event” placeholder
PivxPayment
A PIVX payment promo code sent in chat
Fields
event: StoredEventThe stored event for persistence
WallpaperChanged
A per-DM wallpaper change. The encrypted Blossom file is referenced
by URL + decryption key in the tags; the caller is responsible for
the timestamp comparison (latest-write-wins against
chat.wallpaper_ts) and the download + decrypt step.
Fields
Ignored
Event was ignored (invalid, expired, or should not be stored)
DeletionRequest
A NIP-09 deletion request — sender asks live clients to drop a
previously-received message from local storage. Cooperative
delete-for-everyone signal that pairs with Vector’s gift-wrap
nuke at the relay layer (see vector_core::deletion).
Edit
A message edit event
Trait Implementations§
Source§impl Clone for RumorProcessingResult
impl Clone for RumorProcessingResult
Source§fn clone(&self) -> RumorProcessingResult
fn clone(&self) -> RumorProcessingResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RumorProcessingResult
impl RefUnwindSafe for RumorProcessingResult
impl Send for RumorProcessingResult
impl Sync for RumorProcessingResult
impl Unpin for RumorProcessingResult
impl UnsafeUnpin for RumorProcessingResult
impl UnwindSafe for RumorProcessingResult
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
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>
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>
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