#[non_exhaustive]pub enum RefusalReason {
LifetimeCapReached {
revision: u32,
max: u32,
},
DailyCapReached {
today: u32,
max: u32,
date: String,
},
SkillNotUsedInEpisode {
skill: String,
},
EpisodeSucceeded,
}Expand description
Why a revision was declined. Refusals are normal control flow, not errors.
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.
LifetimeCapReached
Lifetime cap hit — the skill is the wrong abstraction; retire it.
DailyCapReached
Daily cap hit — try again tomorrow.
SkillNotUsedInEpisode
The run never followed this skill, so it isn’t evidence about it.
EpisodeSucceeded
The run worked. Nothing to fix.
Trait Implementations§
Source§impl Clone for RefusalReason
impl Clone for RefusalReason
Source§impl Debug for RefusalReason
impl Debug for RefusalReason
Source§impl PartialEq for RefusalReason
impl PartialEq for RefusalReason
impl StructuralPartialEq for RefusalReason
Auto Trait Implementations§
impl Forget for RefusalReason
impl Freeze for RefusalReason
impl RefUnwindSafe for RefusalReason
impl Send for RefusalReason
impl Sync for RefusalReason
impl Unpin for RefusalReason
impl UnsafeUnpin for RefusalReason
impl UnwindSafe for RefusalReason
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