pub struct ReceiptBody {Show 13 fields
pub receipt_version: u32,
pub receipt_id: String,
pub session_id: String,
pub issued_at: u64,
pub issued_at_iso: String,
pub ai_agent: AgentIdentity,
pub subject: ReceiptSubject,
pub tool_calls: ToolCallSummary,
pub cost: CostSummary,
pub stop_reason_id: u8,
pub stop_reason: String,
pub key_id: String,
pub public_key_b64: String,
}Expand description
The signed body (everything except the signature itself).
Fields§
§receipt_version: u32Receipt format version.
receipt_id: StringUnique receipt id (UUIDv7).
session_id: StringSession this receipt covers.
issued_at: u64Issuance time, epoch ms.
issued_at_iso: StringIssuance time, ISO-8601.
ai_agent: AgentIdentityAgent config-state identity block.
subject: ReceiptSubjectWhat is attested.
tool_calls: ToolCallSummaryTool-call summary.
cost: CostSummaryCost summary.
stop_reason_id: u8Final stop reason id.
stop_reason: StringFinal stop reason caption.
key_id: StringSigner key id.
public_key_b64: StringSigner public key, base64 (self-contained offline verification).
Trait Implementations§
Source§impl Clone for ReceiptBody
impl Clone for ReceiptBody
Source§fn clone(&self) -> ReceiptBody
fn clone(&self) -> ReceiptBody
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 ReceiptBody
impl Debug for ReceiptBody
Source§impl<'de> Deserialize<'de> for ReceiptBody
impl<'de> Deserialize<'de> for ReceiptBody
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
Source§impl PartialEq for ReceiptBody
impl PartialEq for ReceiptBody
Source§fn eq(&self, other: &ReceiptBody) -> bool
fn eq(&self, other: &ReceiptBody) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReceiptBody
impl Serialize for ReceiptBody
impl StructuralPartialEq for ReceiptBody
Auto Trait Implementations§
impl Freeze for ReceiptBody
impl RefUnwindSafe for ReceiptBody
impl Send for ReceiptBody
impl Sync for ReceiptBody
impl Unpin for ReceiptBody
impl UnsafeUnpin for ReceiptBody
impl UnwindSafe for ReceiptBody
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