pub struct SignReceiptOptions<'a> {
pub receipt_id: &'a str,
pub timestamp: &'a str,
pub field_path: &'a str,
pub action: &'a str,
pub service_name: &'a str,
pub key: Option<&'a [u8]>,
}Expand description
The inputs to sign_receipt a caller pins rather than generates. Every
identity-bearing field is a parameter so the fixture vectors can be
reproduced exactly.
Fields§
§receipt_id: &'a str§timestamp: &'a str§field_path: &'a str§action: &'a str§service_name: &'a str§key: Option<&'a [u8]>Signing key. None leaves hmac empty — an unsigned receipt.
Auto Trait Implementations§
impl<'a> Freeze for SignReceiptOptions<'a>
impl<'a> RefUnwindSafe for SignReceiptOptions<'a>
impl<'a> Send for SignReceiptOptions<'a>
impl<'a> Sync for SignReceiptOptions<'a>
impl<'a> Unpin for SignReceiptOptions<'a>
impl<'a> UnsafeUnpin for SignReceiptOptions<'a>
impl<'a> UnwindSafe for SignReceiptOptions<'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