QuotaRule
One quota rule — a limit, and the subjects it counts towards.
Value parameters
- limit
-
the limit the rule sets, in bytes. Absent when the instance did not say. Forgejo uses a negative limit to mean "unlimited", and that is reported verbatim rather than translated — a caller comparing usage against a limit must check the sign first
- name
-
the rule's name, which the spec marks "only shown to admins"; absent for a caller who is not one
- subjects
-
what the rule counts, as the instance spells them:
size:all,size:repos:publicand so on. Plain strings and not QuotaSubject on purpose, for the reason com.worxbend.codeberg4s.issues.LabelName gives — a subject a newer Forgejo emits must not cost the caller the whole rule. Converting one for use as a query argument is the caller's explicit step through QuotaSubject.from
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any