pub struct MeteredBillingContext {
pub settlement_mode: MeteredSettlementMode,
pub quote: MeteredBillingQuote,
pub max_billed_units: Option<u64>,
}Expand description
Generic metered-billing context attached to a governed request.
Fields§
§settlement_mode: MeteredSettlementModeSettlement posture expected for this metered tool action.
quote: MeteredBillingQuotePre-execution quote bound to the governed request.
max_billed_units: Option<u64>Optional explicit upper bound on billable units for the request.
Trait Implementations§
Source§impl Clone for MeteredBillingContext
impl Clone for MeteredBillingContext
Source§fn clone(&self) -> MeteredBillingContext
fn clone(&self) -> MeteredBillingContext
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 MeteredBillingContext
impl Debug for MeteredBillingContext
Source§impl<'de> Deserialize<'de> for MeteredBillingContext
impl<'de> Deserialize<'de> for MeteredBillingContext
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeteredBillingContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MeteredBillingContext, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MeteredBillingContext
impl PartialEq for MeteredBillingContext
Source§impl Serialize for MeteredBillingContext
impl Serialize for MeteredBillingContext
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for MeteredBillingContext
impl StructuralPartialEq for MeteredBillingContext
Auto Trait Implementations§
impl Freeze for MeteredBillingContext
impl RefUnwindSafe for MeteredBillingContext
impl Send for MeteredBillingContext
impl Sync for MeteredBillingContext
impl Unpin for MeteredBillingContext
impl UnsafeUnpin for MeteredBillingContext
impl UnwindSafe for MeteredBillingContext
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