pub struct OAuthRequest {
pub uri: Uri,
pub headers: HeaderMap,
pub method: Method,
pub body: Option<String>,
}
Expand description
A ready-to-send request
Fields§
§uri: Uri
The request Uri
headers: HeaderMap
The request Headers
method: Method
The HTTP method to be used, either GET
or POST
body: Option<String>
The body of the request when applicable
Implementations§
Source§impl OAuthRequest
impl OAuthRequest
Sourcepub fn builder(
request_uri: Uri,
auth_level: AuthenticationLevel,
signature_method: Box<dyn SignatureMethod>,
) -> OAuthRequestBuilder
pub fn builder( request_uri: Uri, auth_level: AuthenticationLevel, signature_method: Box<dyn SignatureMethod>, ) -> OAuthRequestBuilder
Returns an OAuthRequestBuilder.
Trait Implementations§
Source§impl Clone for OAuthRequest
impl Clone for OAuthRequest
Source§fn clone(&self) -> OAuthRequest
fn clone(&self) -> OAuthRequest
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 Debug for OAuthRequest
impl Debug for OAuthRequest
Source§impl PartialEq for OAuthRequest
impl PartialEq for OAuthRequest
impl Eq for OAuthRequest
impl StructuralPartialEq for OAuthRequest
Auto Trait Implementations§
impl !Freeze for OAuthRequest
impl RefUnwindSafe for OAuthRequest
impl Send for OAuthRequest
impl Sync for OAuthRequest
impl Unpin for OAuthRequest
impl UnwindSafe for OAuthRequest
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more