pub struct Received {
pub id: String,
pub group: Option<String>,
pub deliveries: u64,
pub size: usize,
pub content_type: String,
pub body: String,
pub raw: Vec<u8>,
pub receipt: String,
pub at: u64,
pub held_until: Option<u64>,
pub acked: bool,
}Expand description
A message this session received (TUI-MSG-04): the API does not list a queue, so these rows are what was read.
Fields§
§id: String§group: Option<String>§deliveries: u64§size: usize§content_type: String§body: StringThe body as text (lossy for bytes that are not UTF-8).
raw: Vec<u8>The first bytes of the body as they came, for the formatted and the base64 views.
receipt: String§at: u64When it was received (ms since the app opened).
held_until: Option<u64>When it turns visible again (ms since the app opened), while it is held.
acked: boolAcknowledged: it is gone from the queue.
Trait Implementations§
impl Eq for Received
impl StructuralPartialEq for Received
Auto Trait Implementations§
impl Freeze for Received
impl RefUnwindSafe for Received
impl Send for Received
impl Sync for Received
impl Unpin for Received
impl UnsafeUnpin for Received
impl UnwindSafe for Received
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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