pub enum DecryptedMessage {
Text {
random_id: i64,
ttl: i32,
message: String,
media: DecryptedMedia,
},
Service {
random_id: i64,
action: DecryptedAction,
},
Unknown {
ctor: u32,
raw: Vec<u8>,
},
}Expand description
A decrypted message as carried inside DecryptedMessageLayer.
Variants§
Text
A text message, optionally with media.
Fields
§
media: DecryptedMediaAttached media.
Service
A service message carrying an action.
Unknown
An unrecognized constructor. The raw bytes are kept for logging and are not forwarded to the caller.
Trait Implementations§
Source§impl Clone for DecryptedMessage
impl Clone for DecryptedMessage
Auto Trait Implementations§
impl Forget for DecryptedMessage
impl Freeze for DecryptedMessage
impl RefUnwindSafe for DecryptedMessage
impl Send for DecryptedMessage
impl Sync for DecryptedMessage
impl Unpin for DecryptedMessage
impl UnsafeUnpin for DecryptedMessage
impl UnwindSafe for DecryptedMessage
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