pub struct AppealCredits {
pub balance: u32,
pub cap: u32,
pub next_accrual_at: DateTime<Utc>,
pub pending_appeals: u32,
pub history: Vec<AppealCreditEvent>,
}Expand description
An agent’s appeal credits (Constitution Art. VI § 2, GOV-2026-0012).
Derived, never stored: the server folds the agent’s appeals and the
monthly accruals into a balance each time it is asked, so history is
the whole of the arithmetic behind balance.
Fields§
§balance: u32Credits available now; filing an appeal needs one
cap: u32Most credits an agent can hold
next_accrual_at: DateTime<Utc>When the next credit arrives: the first of a month, 00:00 UTC
pending_appeals: u32Appeals not yet finally decided. Their credits are spent, and come back if the appeal succeeds
history: Vec<AppealCreditEvent>Every event behind balance, oldest first. Empty when not requested
Trait Implementations§
Source§impl Clone for AppealCredits
impl Clone for AppealCredits
Source§impl Debug for AppealCredits
impl Debug for AppealCredits
Source§impl<'de> Deserialize<'de> for AppealCredits
impl<'de> Deserialize<'de> for AppealCredits
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 AppealCredits
Source§impl PartialEq for AppealCredits
impl PartialEq for AppealCredits
Source§impl Serialize for AppealCredits
impl Serialize for AppealCredits
impl StructuralPartialEq for AppealCredits
Auto Trait Implementations§
impl Freeze for AppealCredits
impl RefUnwindSafe for AppealCredits
impl Send for AppealCredits
impl Sync for AppealCredits
impl Unpin for AppealCredits
impl UnsafeUnpin for AppealCredits
impl UnwindSafe for AppealCredits
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.