pub struct Status {
pub owner: String,
pub revision: u64,
pub policy: Policy,
pub day_used_seconds: u64,
pub week_used_seconds: u64,
pub remaining_seconds: Option<u64>,
pub allowed: bool,
pub reason: Option<String>,
pub next_change_at: Option<u64>,
}Expand description
Current admission and conservative reserved listening budget.
Fields§
§owner: StringImmutable account owner.
revision: u64Current policy generation.
policy: PolicyCurrent complete policy.
day_used_seconds: u64Union of settled and reserved audio in the local day, rounded upwards.
week_used_seconds: u64Union of settled and reserved audio in the local week, rounded upwards.
remaining_seconds: Option<u64>Smallest remaining day/week budget, or no limit.
allowed: boolWhether the supplied media category may start now.
reason: Option<String>Stable refusal code, absent on success.
next_change_at: Option<u64>Next local schedule/day boundary as Unix seconds, if relevant.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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