[][src]Struct xmpp_parsers::muc::muc::History

pub struct History {
    pub maxchars: Option<u32>,
    pub maxstanzas: Option<u32>,
    pub seconds: Option<u32>,
    pub since: Option<DateTime>,
}

Represents the query for messages before our join.

Fields

maxchars: Option<u32>

How many characters of history to send, in XML characters.

maxstanzas: Option<u32>

How many messages to send.

seconds: Option<u32>

Only send messages received in these last seconds.

since: Option<DateTime>

Only send messages after this date.

Methods

impl History[src]

pub fn new() -> Self[src]

Create a new empty history element.

pub fn with_maxchars(self, maxchars: u32) -> Self[src]

Set how many characters of history to send.

pub fn with_maxstanzas(self, maxstanzas: u32) -> Self[src]

Set how many messages to send.

pub fn with_seconds(self, seconds: u32) -> Self[src]

Only send messages received in these last seconds.

pub fn with_since(self, since: DateTime) -> Self[src]

Only send messages received since this date.

Trait Implementations

impl From<History> for Element[src]

impl PartialEq<History> for History[src]

impl Clone for History[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for History[src]

impl Debug for History[src]

impl TryFrom<Element> for History[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for History

impl Unpin for History

impl Sync for History

impl UnwindSafe for History

impl RefUnwindSafe for History

Blanket Implementations

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

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

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.

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

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

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

impl<T> IntoElements for T where
    T: Into<Element>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self