pub struct HttpReceiptBody {Show 22 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 receipt_kind: ReceiptKind,
pub boundary_class: BoundaryClass,
pub observation_outcome: Option<ObservationOutcome>,
pub tool_origin: ToolOrigin,
pub redaction_mode: RedactionMode,
pub actor_chain: Vec<ActorRef>,
pub evidence: Vec<GuardEvidence>,
pub response_status: u16,
pub timestamp: u64,
pub content_hash: String,
pub policy_hash: String,
pub trust_level: TrustLevel,
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§receipt_kind: ReceiptKind§boundary_class: BoundaryClass§observation_outcome: Option<ObservationOutcome>§tool_origin: ToolOrigin§redaction_mode: RedactionMode§actor_chain: Vec<ActorRef>§evidence: Vec<GuardEvidence>§response_status: u16§timestamp: u64§content_hash: String§policy_hash: String§trust_level: TrustLevel§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 (const: unstable) · 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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more