#[non_exhaustive]pub enum OAuthHttpBody {
Empty,
Form(Vec<(String, String)>),
Json(Value),
}Expand description
Body of an OAuth protocol HTTP request.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
No request body.
Form(Vec<(String, String)>)
application/x-www-form-urlencoded fields.
Json(Value)
JSON request body.
Trait Implementations§
Source§impl Clone for OAuthHttpBody
impl Clone for OAuthHttpBody
Source§fn clone(&self) -> OAuthHttpBody
fn clone(&self) -> OAuthHttpBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OAuthHttpBody
impl RefUnwindSafe for OAuthHttpBody
impl Send for OAuthHttpBody
impl Sync for OAuthHttpBody
impl Unpin for OAuthHttpBody
impl UnsafeUnpin for OAuthHttpBody
impl UnwindSafe for OAuthHttpBody
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