#[non_exhaustive]pub struct RateLimit {
pub status: String,
pub window: Option<String>,
pub resets_at: Option<i64>,
pub overage_status: Option<String>,
pub is_using_overage: Option<bool>,
}Expand description
A quota signal the agent emitted mid-run.
Surfaced rather than acted on: this crate reports what the provider said and
leaves backing off to the caller. See docs/operating-limits.md.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: StringThe provider’s status word, e.g. allowed, rejected.
window: Option<String>Which window this refers to, e.g. five_hour.
resets_at: Option<i64>Unix epoch seconds at which the window resets.
overage_status: Option<String>The provider’s status for overage beyond the plan, e.g. rejected.
is_using_overage: Option<bool>Whether the run was already drawing on overage rather than the plan.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RateLimit
impl<'de> Deserialize<'de> for RateLimit
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 StructuralPartialEq for RateLimit
Auto Trait Implementations§
impl Freeze for RateLimit
impl RefUnwindSafe for RateLimit
impl Send for RateLimit
impl Sync for RateLimit
impl Unpin for RateLimit
impl UnsafeUnpin for RateLimit
impl UnwindSafe for RateLimit
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