[][src]Struct postman_pop3::MessageMeta

pub struct MessageMeta {
    pub id: usize,
    pub uid: String,
    pub size: usize,
    pub path: String,
    pub status: MessageStatus,
    // some fields omitted
}

MessageMeta stores related message metadata.

status is the message's current committed status next_status is the message's not committed status

  • next_status is None means the message's status is up to date.
  • next_status is Some means the message's status has been updated, status could be replace be next_status is user send QUIT or dropped if user close the connection or send REST

Fields

id: usizeuid: Stringsize: usizepath: Stringstatus: MessageStatus

Implementations

impl MessageMeta[src]

pub fn is_fetched(&self) -> bool[src]

pub fn is_deleted(&self) -> bool[src]

pub fn set_fetched(&mut self)[src]

pub fn set_deleted(&mut self)[src]

Trait Implementations

impl Clone for MessageMeta[src]

impl Debug for MessageMeta[src]

impl<'de> Deserialize<'de> for MessageMeta[src]

impl From<IVec> for MessageMeta[src]

impl Into<IVec> for MessageMeta[src]

impl Serialize for MessageMeta[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.