[−][src]Struct xmpp_parsers::muc::muc::History
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(&self) -> 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]
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> IntoElements for T where
T: Into<Element>,
[src]
T: Into<Element>,
fn into_elements(self, emitter: &mut ElementEmitter)
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self