pub struct HttpReceiptBody {Show 15 fields
pub id: String,
pub request_id: String,
pub route_pattern: String,
pub method: HttpMethod,
pub caller_identity_hash: String,
pub session_id: Option<String>,
pub verdict: Verdict,
pub evidence: Vec<GuardEvidence>,
pub response_status: u16,
pub timestamp: u64,
pub content_hash: String,
pub policy_hash: String,
pub capability_id: Option<String>,
pub metadata: Option<Value>,
pub kernel_key: PublicKey,
}Expand description
The body of an HTTP receipt (everything except the signature). Used for signing and verification.
Fields§
§id: String§request_id: String§route_pattern: String§method: HttpMethod§caller_identity_hash: String§session_id: Option<String>§verdict: Verdict§evidence: Vec<GuardEvidence>§response_status: u16§timestamp: u64§content_hash: String§policy_hash: String§capability_id: Option<String>§metadata: Option<Value>§kernel_key: PublicKeyTrait Implementations§
Source§impl Clone for HttpReceiptBody
impl Clone for HttpReceiptBody
Source§fn clone(&self) -> HttpReceiptBody
fn clone(&self) -> HttpReceiptBody
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpReceiptBody
impl Debug for HttpReceiptBody
Source§impl<'de> Deserialize<'de> for HttpReceiptBody
impl<'de> Deserialize<'de> for HttpReceiptBody
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
Auto Trait Implementations§
impl Freeze for HttpReceiptBody
impl RefUnwindSafe for HttpReceiptBody
impl Send for HttpReceiptBody
impl Sync for HttpReceiptBody
impl Unpin for HttpReceiptBody
impl UnsafeUnpin for HttpReceiptBody
impl UnwindSafe for HttpReceiptBody
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