pub enum Charge {
Billable(Billable),
Free(FreeReason),
}Expand description
The verdict.
Variants§
Billable(Billable)
Delivered work that should be recorded.
Free(FreeReason)
An exchange for which no usage is owed.
Implementations§
Source§impl Charge
impl Charge
Sourcepub const fn is_billable(&self) -> bool
pub const fn is_billable(&self) -> bool
Whether the verdict records delivered work (including zero-priced work).
Sourcepub fn idempotency_key(&self) -> Option<&str>
pub fn idempotency_key(&self) -> Option<&str>
The idempotency key, when this charge carries one.
Trait Implementations§
impl Eq for Charge
impl StructuralPartialEq for Charge
Auto Trait Implementations§
impl Freeze for Charge
impl RefUnwindSafe for Charge
impl Send for Charge
impl Sync for Charge
impl Unpin for Charge
impl UnsafeUnpin for Charge
impl UnwindSafe for Charge
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