pub struct UsagePolicy;Expand description
Represents the usage policy concept as a typed training operational contract instead of a raw primitive.
Implementations§
Source§impl UsagePolicy
impl UsagePolicy
Sourcepub fn decide_usage(&self, ledger: &Ledger) -> UsageDecision
pub fn decide_usage(&self, ledger: &Ledger) -> UsageDecision
Decides whether the next training session can be reserved or needs payment/reconciliation review.
Trait Implementations§
Source§impl Clone for UsagePolicy
impl Clone for UsagePolicy
Source§fn clone(&self) -> UsagePolicy
fn clone(&self) -> UsagePolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UsagePolicy
impl Debug for UsagePolicy
Source§impl Default for UsagePolicy
impl Default for UsagePolicy
Source§fn default() -> UsagePolicy
fn default() -> UsagePolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UsagePolicy
impl RefUnwindSafe for UsagePolicy
impl Send for UsagePolicy
impl Sync for UsagePolicy
impl Unpin for UsagePolicy
impl UnsafeUnpin for UsagePolicy
impl UnwindSafe for UsagePolicy
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