pub struct Urlencoder<W = String> { /* private fields */ }
Expand description
A Serializer
that produces a URI query or an x-www-form-urlencoded
string from a
request.
Implementations§
Source§impl Urlencoder
impl Urlencoder
Source§impl<W> Urlencoder<W>where
W: Write,
impl<W> Urlencoder<W>where
W: Write,
Sourcepub fn form_with_buf(buf: W) -> Self
pub fn form_with_buf(buf: W) -> Self
Same with form
but writes the resulting form string into buf
.
Trait Implementations§
Source§impl<W: Clone> Clone for Urlencoder<W>
impl<W: Clone> Clone for Urlencoder<W>
Source§fn clone(&self) -> Urlencoder<W>
fn clone(&self) -> Urlencoder<W>
Returns a duplicate 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<W: Debug> Debug for Urlencoder<W>
impl<W: Debug> Debug for Urlencoder<W>
Source§impl<W: Write> Serializer for Urlencoder<W>
impl<W: Write> Serializer for Urlencoder<W>
Source§fn serialize_parameter<V>(&mut self, key: &str, value: V)where
V: Display,
fn serialize_parameter<V>(&mut self, key: &str, value: V)where
V: Display,
Serializes a key-value pair. Read more
Source§fn serialize_parameter_encoded<V>(&mut self, key: &str, value: V)where
V: Display,
fn serialize_parameter_encoded<V>(&mut self, key: &str, value: V)where
V: Display,
Serializes a key-value pair. Read more
Source§fn serialize_oauth_callback(&mut self)
fn serialize_oauth_callback(&mut self)
Source§fn serialize_oauth_consumer_key(&mut self)
fn serialize_oauth_consumer_key(&mut self)
Source§fn serialize_oauth_nonce(&mut self)
fn serialize_oauth_nonce(&mut self)
Source§fn serialize_oauth_signature_method(&mut self)
fn serialize_oauth_signature_method(&mut self)
Source§fn serialize_oauth_timestamp(&mut self)
fn serialize_oauth_timestamp(&mut self)
Source§fn serialize_oauth_token(&mut self)
fn serialize_oauth_token(&mut self)
Source§fn serialize_oauth_verifier(&mut self)
fn serialize_oauth_verifier(&mut self)
Source§fn serialize_oauth_version(&mut self)
fn serialize_oauth_version(&mut self)
Auto Trait Implementations§
impl<W> Freeze for Urlencoder<W>where
W: Freeze,
impl<W> RefUnwindSafe for Urlencoder<W>where
W: RefUnwindSafe,
impl<W> Send for Urlencoder<W>where
W: Send,
impl<W> Sync for Urlencoder<W>where
W: Sync,
impl<W> Unpin for Urlencoder<W>where
W: Unpin,
impl<W> UnwindSafe for Urlencoder<W>where
W: UnwindSafe,
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§impl<S> SerializerExt for Swhere
S: Serializer,
impl<S> SerializerExt for Swhere
S: Serializer,
Source§fn serialize_oauth_parameters(&mut self)
fn serialize_oauth_parameters(&mut self)
Appends all
oauth_*
parameter to the Authorization
header.