pub struct DpopProofParams<'a> {
pub method: &'a str,
pub url: &'a str,
pub access_token: Option<&'a str>,
pub nonce: Option<&'a str>,
pub now: Option<i64>,
pub jti: Option<&'a str>,
}Expand description
What goes into one proof.
Fields§
§method: &'a strThe HTTP method; upper-cased in the proof.
url: &'a strThe request URL; its query and fragment are not part of the proof.
access_token: Option<&'a str>Adds ath: the request is made with this access token.
nonce: Option<&'a str>A nonce the server gave.
now: Option<i64>Issued-at, unix seconds. For tests.
jti: Option<&'a str>For tests: a real call leaves it out so every proof has its own jti.
Implementations§
Source§impl<'a> DpopProofParams<'a>
impl<'a> DpopProofParams<'a>
pub fn new(method: &'a str, url: &'a str) -> Self
pub fn with_access_token(self, access_token: &'a str) -> Self
pub fn with_nonce(self, nonce: &'a str) -> Self
Trait Implementations§
Source§impl<'a> Clone for DpopProofParams<'a>
impl<'a> Clone for DpopProofParams<'a>
Source§fn clone(&self) -> DpopProofParams<'a>
fn clone(&self) -> DpopProofParams<'a>
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<'a> Freeze for DpopProofParams<'a>
impl<'a> RefUnwindSafe for DpopProofParams<'a>
impl<'a> Send for DpopProofParams<'a>
impl<'a> Sync for DpopProofParams<'a>
impl<'a> Unpin for DpopProofParams<'a>
impl<'a> UnsafeUnpin for DpopProofParams<'a>
impl<'a> UnwindSafe for DpopProofParams<'a>
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