pub struct RequestTarget<'a> {
pub method: &'a str,
pub url: &'a str,
}Expand description
The method and URL a signed header is bound to, without a body.
Used by verify_request_without_body and
UnverifiedRequest::verify_without_body. As for ExpectedRequest, the
URL must be the one the server trusts, never a value copied from the
token.
§Examples
use stratum_node_core::RequestTarget;
let target = RequestTarget::new("GET", "https://stratum.example.org/pods/abc/");
assert_eq!(target.method, "GET");Fields§
§method: &'a strThe HTTP method token, compared byte for byte with the method tag.
url: &'a strThe absolute URL, compared byte for byte with the u tag.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for RequestTarget<'a>
impl<'a> Clone for RequestTarget<'a>
impl<'a> Copy for RequestTarget<'a>
Source§impl<'a> Debug for RequestTarget<'a>
impl<'a> Debug for RequestTarget<'a>
impl<'a> Eq for RequestTarget<'a>
Source§impl<'a> PartialEq for RequestTarget<'a>
impl<'a> PartialEq for RequestTarget<'a>
impl<'a> StructuralPartialEq for RequestTarget<'a>
Auto Trait Implementations§
impl<'a> Forget for RequestTarget<'a>
impl<'a> Freeze for RequestTarget<'a>
impl<'a> Move for RequestTarget<'a>
impl<'a> RefUnwindSafe for RequestTarget<'a>
impl<'a> Send for RequestTarget<'a>
impl<'a> Sync for RequestTarget<'a>
impl<'a> Unpin for RequestTarget<'a>
impl<'a> UnsafeUnpin for RequestTarget<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for RequestTarget<'a>where
&'a str: 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