#[non_exhaustive]pub enum ModelErrorValidationError {
AttemptMismatch {
expected: AttemptId,
actual: AttemptId,
},
ModelIdentityMismatch {
expected: Box<CapabilityIdentity>,
actual: Box<CapabilityIdentity>,
},
PhaseResponseModeMismatch {
phase: ModelErrorPhase,
response_mode: ModelResponseMode,
},
InputUsageExceedsRequest {
maximum: TokenCount,
actual: TokenCount,
},
OutputUsageExceedsRequest {
maximum: TokenCount,
actual: TokenCount,
},
}Expand description
Invalid relationship between a model failure and its invocation snapshot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AttemptMismatch
Failure provenance named a different attempt.
ModelIdentityMismatch
Failure provenance named a different registered model binding.
Fields
§
expected: Box<CapabilityIdentity>Exact immutable descriptor identity.
§
actual: Box<CapabilityIdentity>Rejected failure claim.
PhaseResponseModeMismatch
Failure stage was impossible for the request’s delivery mode.
Fields
§
phase: ModelErrorPhaseReported failure stage.
§
response_mode: ModelResponseModeImmutable request delivery mode.
InputUsageExceedsRequest
Provider input accounting exceeded the request ceiling.
Fields
§
maximum: TokenCountRequest input-token ceiling.
§
actual: TokenCountProvider-reported normalized input.
OutputUsageExceedsRequest
Provider output accounting exceeded the request ceiling.
Fields
§
maximum: TokenCountRequest output-token ceiling.
§
actual: TokenCountProvider-reported normalized output.
Trait Implementations§
Source§impl Clone for ModelErrorValidationError
impl Clone for ModelErrorValidationError
Source§impl Debug for ModelErrorValidationError
impl Debug for ModelErrorValidationError
Source§impl Display for ModelErrorValidationError
impl Display for ModelErrorValidationError
impl Eq for ModelErrorValidationError
Source§impl Error for ModelErrorValidationError
impl Error for ModelErrorValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for ModelErrorValidationError
Auto Trait Implementations§
impl Forget for ModelErrorValidationError
impl Freeze for ModelErrorValidationError
impl Move for ModelErrorValidationError
impl RefUnwindSafe for ModelErrorValidationError
impl Send for ModelErrorValidationError
impl Sync for ModelErrorValidationError
impl Unpin for ModelErrorValidationError
impl UnsafeUnpin for ModelErrorValidationError
impl UnwindSafe for ModelErrorValidationError
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