pub enum Admission {
Admitted {
projected_requests_per_hour: u32,
headroom_after: u32,
},
Refused {
candidate: TargetCost,
candidate_requests_per_hour: u32,
projected_requests_per_hour: u32,
allowance: u32,
ceiling: u32,
interval: RefreshInterval,
max_repository_targets: u32,
},
}Expand description
The answer f2’s repo add and org add act on.
Variants§
Implementations§
Trait Implementations§
Source§impl Display for Admission
impl Display for Admission
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
The refusal has to explain itself: “an operator who adds an eleventh
repository needs to know why it was refused”
(04-subsystem-contracts.md). So the message carries the computed
numbers rather than the rule, and — for an organization — says which
repository count drove them, because that is the part a flat per-target
reading of the design would not have predicted.
impl Eq for Admission
impl StructuralPartialEq for Admission
Auto Trait Implementations§
impl Freeze for Admission
impl RefUnwindSafe for Admission
impl Send for Admission
impl Sync for Admission
impl Unpin for Admission
impl UnsafeUnpin for Admission
impl UnwindSafe for Admission
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
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
Compare self to
key and return true if they are equal.