pub struct ReceiptObjectDigestV2 {
pub algorithm: ObjectDigestAlgorithmV2,
pub key_id: String,
}Expand description
The key a version 2 receipt’s decision objects are digested under: its algorithm and a public identifier, never the key.
Fields§
§algorithm: ObjectDigestAlgorithmV2§key_id: Stringrk- and the first 32 hex digits of
HMAC-SHA256(key, "leanctx.receipt.key-id.v2"): tells keys apart,
reveals nothing of the key.
Implementations§
Source§impl ReceiptObjectDigestV2
impl ReceiptObjectDigestV2
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for ReceiptObjectDigestV2
impl Clone for ReceiptObjectDigestV2
Source§impl Debug for ReceiptObjectDigestV2
impl Debug for ReceiptObjectDigestV2
Source§impl<'de> Deserialize<'de> for ReceiptObjectDigestV2
impl<'de> Deserialize<'de> for ReceiptObjectDigestV2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ReceiptObjectDigestV2
Source§impl PartialEq for ReceiptObjectDigestV2
impl PartialEq for ReceiptObjectDigestV2
Source§impl Serialize for ReceiptObjectDigestV2
impl Serialize for ReceiptObjectDigestV2
impl StructuralPartialEq for ReceiptObjectDigestV2
Auto Trait Implementations§
impl Freeze for ReceiptObjectDigestV2
impl RefUnwindSafe for ReceiptObjectDigestV2
impl Send for ReceiptObjectDigestV2
impl Sync for ReceiptObjectDigestV2
impl Unpin for ReceiptObjectDigestV2
impl UnsafeUnpin for ReceiptObjectDigestV2
impl UnwindSafe for ReceiptObjectDigestV2
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