Struct xmpp_parsers::mam::MetadataResponse
source · pub struct MetadataResponse {
pub start: Option<Start>,
pub end: Option<End>,
}
Expand description
Response from the archive, containing the start and end metadata if it isn’t empty.
Fields§
§start: Option<Start>
Metadata about the first message in the archive.
end: Option<End>
Metadata about the last message in the archive.
Trait Implementations§
source§impl AsXml for MetadataResponse
impl AsXml for MetadataResponse
source§impl Clone for MetadataResponse
impl Clone for MetadataResponse
source§fn clone(&self) -> MetadataResponse
fn clone(&self) -> MetadataResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MetadataResponse
impl Debug for MetadataResponse
source§impl From<MetadataResponse> for Element
impl From<MetadataResponse> for Element
source§fn from(elem: MetadataResponse) -> Element
fn from(elem: MetadataResponse) -> Element
Converts to this type from the input type.
source§impl FromXml for MetadataResponse
impl FromXml for MetadataResponse
§type Builder = FromEventsViaElement<MetadataResponse>
type Builder = FromEventsViaElement<MetadataResponse>
A builder type used to construct the element. Read more
source§fn from_events(
qname: QName,
attrs: AttrMap,
) -> Result<Self::Builder, FromEventsError>
fn from_events( qname: QName, attrs: AttrMap, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
source§impl PartialEq for MetadataResponse
impl PartialEq for MetadataResponse
source§fn eq(&self, other: &MetadataResponse) -> bool
fn eq(&self, other: &MetadataResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Element> for MetadataResponse
impl TryFrom<Element> for MetadataResponse
§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
source§fn try_from(elem: Element) -> Result<MetadataResponse, FromElementError>
fn try_from(elem: Element) -> Result<MetadataResponse, FromElementError>
Performs the conversion.
impl IqResultPayload for MetadataResponse
impl StructuralPartialEq for MetadataResponse
Auto Trait Implementations§
impl Freeze for MetadataResponse
impl RefUnwindSafe for MetadataResponse
impl Send for MetadataResponse
impl Sync for MetadataResponse
impl Unpin for MetadataResponse
impl UnwindSafe for MetadataResponse
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)