pub struct TextParts(_);
Expand description
The text parts of a multipart/form-data request
Implementations
sourceimpl TextParts
impl TextParts
pub fn into_inner(self) -> Vec<(String, Bytes)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
sourcepub fn as_pairs(&self) -> Vec<(&str, &str)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn as_pairs(&self) -> Vec<(&str, &str)>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Returns the field names and values as &str
s. If values are non-UTF8, use
into_inner
to access values
sourcepub fn to_query_string(&self) -> String
pub fn to_query_string(&self) -> String
Re-encodes the string-like text parts to a query string
sourcepub fn as_hash_map(&self) -> HashMap<&str, &str>
pub fn as_hash_map(&self) -> HashMap<&str, &str>
Returns HashMap
of field names and values
NOTE: this will discard the first of multiple values for a key
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TextParts
impl Send for TextParts
impl Sync for TextParts
impl Unpin for TextParts
impl UnwindSafe for TextParts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more