pub struct ProviderAttempt {
pub provider: String,
pub model: Option<String>,
pub outcome: ProviderAttemptOutcome,
pub error_code: Option<ErrorCode>,
pub duration_ms: u64,
}Expand description
Redaction-safe execution trace for one provider route.
Fields§
§provider: StringRegistered provider name.
model: Option<String>Requested or discovered model when known.
outcome: ProviderAttemptOutcomeWhether this attempt succeeded or failed.
error_code: Option<ErrorCode>Stable error code for a failed attempt.
duration_ms: u64Time spent on capability discovery, admission, and execution.
Trait Implementations§
Source§impl Clone for ProviderAttempt
impl Clone for ProviderAttempt
Source§fn clone(&self) -> ProviderAttempt
fn clone(&self) -> ProviderAttempt
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 ProviderAttempt
impl Debug for ProviderAttempt
Source§impl<'de> Deserialize<'de> for ProviderAttempt
impl<'de> Deserialize<'de> for ProviderAttempt
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
impl Eq for ProviderAttempt
Source§impl JsonSchema for ProviderAttempt
impl JsonSchema for ProviderAttempt
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProviderAttempt
impl PartialEq for ProviderAttempt
Source§impl Serialize for ProviderAttempt
impl Serialize for ProviderAttempt
impl StructuralPartialEq for ProviderAttempt
Auto Trait Implementations§
impl Freeze for ProviderAttempt
impl RefUnwindSafe for ProviderAttempt
impl Send for ProviderAttempt
impl Sync for ProviderAttempt
impl Unpin for ProviderAttempt
impl UnsafeUnpin for ProviderAttempt
impl UnwindSafe for ProviderAttempt
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