pub struct BodyUncheckedRequest { /* private fields */ }Expand description
A signed request checked in every respect except its body.
Returned by verify_request_without_body and
UnverifiedRequest::verify_without_body. The signer, event ID and
creation time are verified exactly as in a VerifiedRequest. The
payload is only what the signer claims the body hashes to: no body has
been compared with it. Use it for routing and authorisation decisions that
depend on who signed, never as proof of what was sent.
Implementations§
Source§impl BodyUncheckedRequest
impl BodyUncheckedRequest
Sourcepub fn created_at(&self) -> UnixTime
pub fn created_at(&self) -> UnixTime
Returns the signed creation time.
Sourcepub fn claimed_payload(&self) -> Option<Sha256Digest>
pub fn claimed_payload(&self) -> Option<Sha256Digest>
Returns the payload tag as a digest, if the event carries one.
This is the signer’s claim about the body, unverified: nothing has hashed a body and compared it.
Trait Implementations§
Source§impl Clone for BodyUncheckedRequest
impl Clone for BodyUncheckedRequest
impl Copy for BodyUncheckedRequest
Source§impl Debug for BodyUncheckedRequest
impl Debug for BodyUncheckedRequest
impl Eq for BodyUncheckedRequest
Source§impl Hash for BodyUncheckedRequest
impl Hash for BodyUncheckedRequest
Source§impl PartialEq for BodyUncheckedRequest
impl PartialEq for BodyUncheckedRequest
impl StructuralPartialEq for BodyUncheckedRequest
Auto Trait Implementations§
impl Forget for BodyUncheckedRequest
impl Freeze for BodyUncheckedRequest
impl Move for BodyUncheckedRequest
impl RefUnwindSafe for BodyUncheckedRequest
impl Send for BodyUncheckedRequest
impl Sync for BodyUncheckedRequest
impl Unpin for BodyUncheckedRequest
impl UnsafeUnpin for BodyUncheckedRequest
impl UnwindSafe for BodyUncheckedRequest
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