pub struct BuyerLaneSnapshot {
pub voucher_signer: String,
pub provider: String,
pub last_amount_micro_usdc: u64,
pub last_bytes_delivered: u64,
}Expand description
One lane the node pays on, as the buyer’s own store records it
(admin_v1_pools). The buyer-side mirror of LaneSnapshot: where that
reports what a lane has accrued against this node, this reports what this
node has already promised to pay a provider.
Fields§
§voucher_signer: StringThe capability signer whose key authorized the vouchers on this lane
(LaneKey::signer), EIP-55 checksummed hex. Equal to the pool owner for
the ordinary self-signing case, and a delegate key otherwise.
provider: StringThe provider being paid on this lane (LaneKey::provider), EIP-55
checksummed hex.
last_amount_micro_usdc: u64Cumulative amount of the last voucher this node signed on the lane, in micro-USDC. This is the node’s own spend watermark: re-signing a lower total is what strands a lane, so it is the figure to compare against a provider’s complaint.
last_bytes_delivered: u64Bytes delivered as of that same voucher.
Trait Implementations§
Source§impl Clone for BuyerLaneSnapshot
impl Clone for BuyerLaneSnapshot
Source§impl Debug for BuyerLaneSnapshot
impl Debug for BuyerLaneSnapshot
Source§impl<'de> Deserialize<'de> for BuyerLaneSnapshot
impl<'de> Deserialize<'de> for BuyerLaneSnapshot
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>,
Auto Trait Implementations§
impl Freeze for BuyerLaneSnapshot
impl RefUnwindSafe for BuyerLaneSnapshot
impl Send for BuyerLaneSnapshot
impl Sync for BuyerLaneSnapshot
impl Unpin for BuyerLaneSnapshot
impl UnsafeUnpin for BuyerLaneSnapshot
impl UnwindSafe for BuyerLaneSnapshot
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
impl<'de, T> BorrowedRpcObject<'de> for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more