pub struct Grant {
pub mode: GrantMode,
pub features: BTreeSet<String>,
pub quotas: BTreeMap<String, u64>,
pub licences: Vec<LicenceEvaluation>,
pub trial: Option<TrialStatus>,
pub next_change: Option<DateTime<Utc>>,
}Expand description
What all licences together grant.
Fields§
§mode: GrantMode§features: BTreeSet<String>Union over valid licences (trial: the policy’s features).
quotas: BTreeMap<String, u64>Sum over valid licences (trial: the policy’s quotas).
licences: Vec<LicenceEvaluation>§trial: Option<TrialStatus>§next_change: Option<DateTime<Utc>>Earliest future instant at which the result changes by itself.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Grant
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnwindSafe for Grant
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