#[repr(transparent)]pub struct Multipart { /* private fields */ }
Implementations§
source§impl Multipart
impl Multipart
sourcepub fn as_ptr(&self) -> *mut SoupMultipart
pub fn as_ptr(&self) -> *mut SoupMultipart
Return the inner pointer to the underlying C value.
source§impl Multipart
impl Multipart
pub fn new(mime_type: &str) -> Multipart
pub fn from_message(headers: &MessageHeaders, body: &Bytes) -> Option<Multipart>
pub fn append_form_file(
&mut self,
control_name: &str,
filename: &str,
content_type: &str,
body: &Bytes
)
pub fn append_form_string(&mut self, control_name: &str, data: &str)
pub fn append_part(&mut self, headers: &MessageHeaders, body: &Bytes)
pub fn length(&mut self) -> i32
pub fn part(&mut self, part: i32) -> Option<(MessageHeaders, Bytes)>
pub fn to_message(&mut self, dest_headers: &MessageHeaders) -> Bytes
Trait Implementations§
source§impl Ord for Multipart
impl Ord for Multipart
source§impl PartialEq<Multipart> for Multipart
impl PartialEq<Multipart> for Multipart
source§impl PartialOrd<Multipart> for Multipart
impl PartialOrd<Multipart> for Multipart
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for Multipart
impl StaticType for Multipart
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Multipart
impl StructuralEq for Multipart
impl StructuralPartialEq for Multipart
Auto Trait Implementations§
impl RefUnwindSafe for Multipart
impl !Send for Multipart
impl !Sync for Multipart
impl Unpin for Multipart
impl UnwindSafe for Multipart
Blanket Implementations§
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.