pub struct AccountCap {
pub reset_epoch: i64,
pub reset_label: Option<String>,
}Expand description
What an agent’s cap verb says about the account it dispatches on: the
instant its usage window reopens (DESIGN.md §8).
This is the same quantity the badge parses off a session’s screen, without the parse. It is a fact the agent reports rather than a heuristic standing in for one, and it is account-wide, so a single reading answers for every session on the strip — where the screen reading has to be taken per session, costing a subprocess each.
The label is the agent’s instant in the operator’s own timezone, rendered where the reading is taken because that is off the render path and this crate has no clock. Absent when it could not be rendered, in which case the badge shows the cap without a time exactly as an unparsed one does.
Fields§
§reset_epoch: i64When the window reopens, in seconds since the Unix epoch.
reset_label: Option<String>That instant as a local 21:50, for the badge.
Trait Implementations§
Source§impl Clone for AccountCap
impl Clone for AccountCap
Source§fn clone(&self) -> AccountCap
fn clone(&self) -> AccountCap
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccountCap
impl Debug for AccountCap
impl Eq for AccountCap
Source§impl PartialEq for AccountCap
impl PartialEq for AccountCap
impl StructuralPartialEq for AccountCap
Auto Trait Implementations§
impl Freeze for AccountCap
impl RefUnwindSafe for AccountCap
impl Send for AccountCap
impl Sync for AccountCap
impl Unpin for AccountCap
impl UnsafeUnpin for AccountCap
impl UnwindSafe for AccountCap
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
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,
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
key and return true if they are equal.