pub struct Price {
pub actual: u64,
}Expand description
What the guest sends to circlet.price: what its most recent
developer-priced fetch was actually worth, once the response has shown
(per result returned, per byte delivered — the author’s own pricing
logic). Must be at or under the reserved price_max; the difference
returns to the payer’s grant. Above the max is a typed trap, never a
bill.
Named for the family it belongs to — price_max, price,
developer_priced. The word “settle” belongs to the payment rails
(x402 spells its own wire verb that way), and one word may only mean one
thing.
Fields§
§actual: u64The price the author charged, in pixie.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Price
impl<'de> Deserialize<'de> for Price
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
impl StructuralPartialEq for Price
Auto Trait Implementations§
impl Freeze for Price
impl RefUnwindSafe for Price
impl Send for Price
impl Sync for Price
impl Unpin for Price
impl UnsafeUnpin for Price
impl UnwindSafe for Price
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