pub struct Decision {Show 14 fields
pub request_id: String,
pub session_id: Option<String>,
pub request_created_at: String,
pub provider: Option<String>,
pub model: Option<String>,
pub status: String,
pub latency_ms: Option<i64>,
pub cost_micro_usd: Option<i64>,
pub cache_enabled: Option<bool>,
pub threat: Option<String>,
pub decision_trace: Option<Value>,
pub confidence: Option<f64>,
pub confidence_reason: Option<String>,
pub explanation: Option<String>,
}Expand description
One row of the per-request decision audit trail. Nullable gateway fields
are Option (None == JSON null).
Fields§
§request_id: StringThe originating request id.
session_id: Option<String>Session the request belonged to, if any.
request_created_at: StringRFC3339 timestamp of the originating request.
provider: Option<String>Resolved upstream provider.
model: Option<String>Resolved upstream model.
status: StringTerminal status of the request.
latency_ms: Option<i64>End-to-end latency in milliseconds.
cost_micro_usd: Option<i64>Cost in micro-USD.
cache_enabled: Option<bool>Whether caching was enabled for the request.
threat: Option<String>Detected threat label, if the firewall flagged the request.
decision_trace: Option<Value>Opaque routing/decision trace.
confidence: Option<f64>Routing confidence score.
confidence_reason: Option<String>Why that confidence was assigned.
explanation: Option<String>Human-readable explanation of the decision.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
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 Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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