pub struct PriceTag {
pub requirements: PaymentRequirements,
}Expand description
Seller-side wrapper around PaymentRequirements.
Scheme-specific extra is filled during 402 construction, not on this type.
Fields§
§requirements: PaymentRequirementsRequirements being advertised.
Implementations§
Source§impl PriceTag
impl PriceTag
Sourcepub const fn new(requirements: PaymentRequirements) -> Self
pub const fn new(requirements: PaymentRequirements) -> Self
Wraps existing requirements.
Sourcepub const fn with_timeout(self, seconds: u64) -> Self
pub const fn with_timeout(self, seconds: u64) -> Self
Overrides maxTimeoutSeconds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PriceTag
impl RefUnwindSafe for PriceTag
impl Send for PriceTag
impl Sync for PriceTag
impl Unpin for PriceTag
impl UnsafeUnpin for PriceTag
impl UnwindSafe for PriceTag
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