pub enum ProviderEventValidationError {
Empty {
field: &'static str,
},
InvalidField {
field: &'static str,
max: usize,
},
TooManyTools {
count: usize,
max: usize,
},
InvalidInteractionResolutionOutcome {
outcome: ProviderInteractionOutcome,
},
ZeroContextWindowCapacity,
ContextWindowSegmentsOverflow,
ContextWindowSegmentsMismatch {
segment_sum: u64,
used_tokens: u64,
},
}Variants§
Empty
InvalidField
TooManyTools
InvalidInteractionResolutionOutcome
Fields
§
outcome: ProviderInteractionOutcomeZeroContextWindowCapacity
ContextWindowSegmentsOverflow
ContextWindowSegmentsMismatch
Trait Implementations§
Source§impl Clone for ProviderEventValidationError
impl Clone for ProviderEventValidationError
Source§fn clone(&self) -> ProviderEventValidationError
fn clone(&self) -> ProviderEventValidationError
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 ProviderEventValidationError
impl Debug for ProviderEventValidationError
impl Eq for ProviderEventValidationError
Source§impl Error for ProviderEventValidationError
impl Error for ProviderEventValidationError
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 ProviderEventValidationError
Auto Trait Implementations§
impl Freeze for ProviderEventValidationError
impl RefUnwindSafe for ProviderEventValidationError
impl Send for ProviderEventValidationError
impl Sync for ProviderEventValidationError
impl Unpin for ProviderEventValidationError
impl UnsafeUnpin for ProviderEventValidationError
impl UnwindSafe for ProviderEventValidationError
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