pub struct PaymentConditionBody {
pub cost_sats: u64,
}Expand description
Body of an acl:PaymentCondition.
Specifies the cost in satoshis required for access. The WAC evaluator
checks RequestContext::payment_balance_sats >= cost_sats and returns
Satisfied or Denied accordingly.
Fields§
§cost_sats: u64Cost in satoshis to access the guarded resource.
Trait Implementations§
Source§impl Clone for PaymentConditionBody
impl Clone for PaymentConditionBody
Source§fn clone(&self) -> PaymentConditionBody
fn clone(&self) -> PaymentConditionBody
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 PaymentConditionBody
impl Debug for PaymentConditionBody
Source§impl Default for PaymentConditionBody
impl Default for PaymentConditionBody
Source§fn default() -> PaymentConditionBody
fn default() -> PaymentConditionBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentConditionBody
impl<'de> Deserialize<'de> for PaymentConditionBody
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 PaymentConditionBody
impl RefUnwindSafe for PaymentConditionBody
impl Send for PaymentConditionBody
impl Sync for PaymentConditionBody
impl Unpin for PaymentConditionBody
impl UnsafeUnpin for PaymentConditionBody
impl UnwindSafe for PaymentConditionBody
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