pub struct ExecutionReceipt {Show 15 fields
pub receipt_id: String,
pub session_id: String,
pub model_id: String,
pub provider_id: String,
pub mode: ExecutionMode,
pub prompt_tokens: u32,
pub completion_tokens: u32,
pub expert_calls: u32,
pub streamed_layer_loads: u32,
pub kv_profile_id: String,
pub kv_memory_ms: u64,
pub attested: bool,
pub attestation_ref: String,
pub output_hash: String,
pub created_unix_ms: i64,
}Expand description
Receipt emitted after a completed inference session.
Fields§
§receipt_id: StringUnique receipt identifier.
session_id: StringSession or request identifier this receipt covers.
model_id: StringModel that was executed.
provider_id: StringProvider that served the request.
mode: ExecutionModeExecution mode actually used.
prompt_tokens: u32Number of prompt tokens processed.
completion_tokens: u32Number of completion tokens generated.
expert_calls: u32Number of expert activations (MoE only).
streamed_layer_loads: u32Number of layer shard loads (streaming only).
kv_profile_id: StringKV-cache profile identifier used.
kv_memory_ms: u64KV-cache memory resident duration in milliseconds.
attested: boolWhether the session ran in an attested TEE.
attestation_ref: StringReference to the attestation report (if attested).
output_hash: StringSHA-256 of the raw output bytes.
created_unix_ms: i64Unix timestamp (ms) when receipt was created.
Trait Implementations§
Source§impl Clone for ExecutionReceipt
impl Clone for ExecutionReceipt
Source§fn clone(&self) -> ExecutionReceipt
fn clone(&self) -> ExecutionReceipt
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 ExecutionReceipt
impl Debug for ExecutionReceipt
Source§impl Default for ExecutionReceipt
impl Default for ExecutionReceipt
Source§fn default() -> ExecutionReceipt
fn default() -> ExecutionReceipt
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionReceipt
impl<'de> Deserialize<'de> for ExecutionReceipt
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 ExecutionReceipt
impl RefUnwindSafe for ExecutionReceipt
impl Send for ExecutionReceipt
impl Sync for ExecutionReceipt
impl Unpin for ExecutionReceipt
impl UnsafeUnpin for ExecutionReceipt
impl UnwindSafe for ExecutionReceipt
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