pub struct PayJoinProposal {
pub inputs: Vec<InputRef>,
pub outputs: Vec<OutputDef>,
pub original_psbt: String,
pub fee_contribution: u64,
}Expand description
PayJoin proposal ready for signing.
Fields§
§inputs: Vec<InputRef>All inputs (sender + receiver)
outputs: Vec<OutputDef>All outputs
original_psbt: StringOriginal PSBT for reference
fee_contribution: u64Fee contribution from receiver
Implementations§
Source§impl PayJoinProposal
impl PayJoinProposal
Sourcepub fn total_input(&self) -> u64
pub fn total_input(&self) -> u64
Total input amount.
Sourcepub fn total_output(&self) -> u64
pub fn total_output(&self) -> u64
Total output amount.
Sourcepub fn input_count(&self) -> usize
pub fn input_count(&self) -> usize
Number of inputs.
Sourcepub fn output_count(&self) -> usize
pub fn output_count(&self) -> usize
Number of outputs.
Trait Implementations§
Source§impl Clone for PayJoinProposal
impl Clone for PayJoinProposal
Source§fn clone(&self) -> PayJoinProposal
fn clone(&self) -> PayJoinProposal
Returns a duplicate of the value. Read more
1.0.0 · 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 PayJoinProposal
impl Debug for PayJoinProposal
Source§impl<'de> Deserialize<'de> for PayJoinProposal
impl<'de> Deserialize<'de> for PayJoinProposal
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 PayJoinProposal
impl RefUnwindSafe for PayJoinProposal
impl Send for PayJoinProposal
impl Sync for PayJoinProposal
impl Unpin for PayJoinProposal
impl UnwindSafe for PayJoinProposal
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