pub struct Billable {
pub method: Method,
pub name: Option<String>,
pub units: u64,
pub idempotency_key: Option<String>,
}Expand description
A charge to record against a tenant.
Fields§
§method: MethodMethod that originally commissioned the delivered work.
name: Option<String>Decoded tool, prompt, or resource name when available.
units: u64Integer units to record with the billing backend.
idempotency_key: Option<String>When present, the caller MUST NOT record this charge more than once for this key. Carried by task completions, whose terminal state can be re-observed by any number of later polls.
Trait Implementations§
impl Eq for Billable
impl StructuralPartialEq for Billable
Auto Trait Implementations§
impl Freeze for Billable
impl RefUnwindSafe for Billable
impl Send for Billable
impl Sync for Billable
impl Unpin for Billable
impl UnsafeUnpin for Billable
impl UnwindSafe for Billable
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