pub enum ProviderRateLimitKind {
Session,
Daily,
Weekly,
Unknown,
}Expand description
Which class of budget a ProviderEvent::RateLimited observation
concerns. This is the wire-typed counterpart of gate4agent’s own
(source-of-truth) RateLimitType – kept as its own type here, rather
than imported, because this crate’s contract forbids depending on
gate4agent (see this crate’s CLAUDE.md); the conversion from the
detector’s enum lives in the shell that already depends on both.
Variants§
Session
Session/hourly limit (codex: the rolling 5h window).
Daily
Daily limit.
Weekly
Weekly limit.
Unknown
Limit type could not be determined from the matched text.
Trait Implementations§
Source§impl Clone for ProviderRateLimitKind
impl Clone for ProviderRateLimitKind
impl Copy for ProviderRateLimitKind
Source§impl Debug for ProviderRateLimitKind
impl Debug for ProviderRateLimitKind
Source§impl<'de> Deserialize<'de> for ProviderRateLimitKind
impl<'de> Deserialize<'de> for ProviderRateLimitKind
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 ProviderRateLimitKind
Source§impl PartialEq for ProviderRateLimitKind
impl PartialEq for ProviderRateLimitKind
Source§impl Serialize for ProviderRateLimitKind
impl Serialize for ProviderRateLimitKind
impl StructuralPartialEq for ProviderRateLimitKind
Auto Trait Implementations§
impl Freeze for ProviderRateLimitKind
impl RefUnwindSafe for ProviderRateLimitKind
impl Send for ProviderRateLimitKind
impl Sync for ProviderRateLimitKind
impl Unpin for ProviderRateLimitKind
impl UnsafeUnpin for ProviderRateLimitKind
impl UnwindSafe for ProviderRateLimitKind
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