Struct xmpp_parsers::http_upload::SlotRequest
source · pub struct SlotRequest {
pub filename: String,
pub size: u64,
pub content_type: Option<String>,
}
Expand description
Requesting a slot
Fields§
§filename: String
The filename to be uploaded.
size: u64
Size of the file to be uploaded.
content_type: Option<String>
Content-Type of the file.
Trait Implementations§
source§impl AsXml for SlotRequest
impl AsXml for SlotRequest
source§impl Clone for SlotRequest
impl Clone for SlotRequest
source§fn clone(&self) -> SlotRequest
fn clone(&self) -> SlotRequest
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 SlotRequest
impl Debug for SlotRequest
source§impl From<SlotRequest> for Element
impl From<SlotRequest> for Element
source§fn from(other: SlotRequest) -> Self
fn from(other: SlotRequest) -> Self
Converts to this type from the input type.
source§impl FromXml for SlotRequest
impl FromXml for SlotRequest
§type Builder = SlotRequestFromXmlBuilder
type Builder = SlotRequestFromXmlBuilder
A builder type used to construct the element. Read more
source§fn from_events(
name: QName,
attrs: AttrMap,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: QName, attrs: AttrMap, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
source§impl PartialEq for SlotRequest
impl PartialEq for SlotRequest
source§fn eq(&self, other: &SlotRequest) -> bool
fn eq(&self, other: &SlotRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Element> for SlotRequest
impl TryFrom<Element> for SlotRequest
impl IqGetPayload for SlotRequest
impl StructuralPartialEq for SlotRequest
Auto Trait Implementations§
impl Freeze for SlotRequest
impl RefUnwindSafe for SlotRequest
impl Send for SlotRequest
impl Sync for SlotRequest
impl Unpin for SlotRequest
impl UnwindSafe for SlotRequest
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
)