pub struct TariffRequest {
pub resource_class: String,
pub quantity: u64,
pub subject_did: String,
pub catalog_version: String,
}Expand description
A tariff quote request — the product asks “what does this cost?” and the server owns the price, catalog, and ceiling (#1399, PAY-00 #3).
Fields§
§resource_class: Stringe.g. "gpu.h100.seconds".
quantity: u64How many units of the resource.
subject_did: StringThe DID of the subject who will pay (for tier/allowance resolution).
catalog_version: StringPinned catalog version (the product may carry a cached version; the server validates it’s still current).
Trait Implementations§
Source§impl Clone for TariffRequest
impl Clone for TariffRequest
Source§fn clone(&self) -> TariffRequest
fn clone(&self) -> TariffRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TariffRequest
impl Debug for TariffRequest
Source§impl<'de> Deserialize<'de> for TariffRequest
impl<'de> Deserialize<'de> for TariffRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TariffRequest
impl RefUnwindSafe for TariffRequest
impl Send for TariffRequest
impl Sync for TariffRequest
impl Unpin for TariffRequest
impl UnsafeUnpin for TariffRequest
impl UnwindSafe for TariffRequest
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