pub struct Quotas {
pub push_bytes: Option<NonZeroU64>,
pub workspaces: Option<NonZeroU32>,
}Expand description
The operator’s per-user ceilings. Either may be left unset, and unset means unlimited — the same shape as the D33 rate-limit flags.
Fields§
§push_bytes: Option<NonZeroU64>Maximum bytes in the body of one git smart-HTTP request.
A per-request ceiling rather than a budget over time, because the resource being bounded is the transfer and the unpack it feeds, both of which are paid per request. That is also why this half needs no persisted state, and why only the workspace half forced a register row.
workspaces: Option<NonZeroU32>Maximum workspaces one user may hold at once.
Implementations§
Trait Implementations§
impl Copy for Quotas
Auto Trait Implementations§
impl Freeze for Quotas
impl RefUnwindSafe for Quotas
impl Send for Quotas
impl Sync for Quotas
impl Unpin for Quotas
impl UnsafeUnpin for Quotas
impl UnwindSafe for Quotas
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