pub struct ContractInput {
pub offer_collateral: u64,
pub accept_collateral: u64,
pub fee_rate: u64,
pub contract_infos: Vec<ContractInputInfo>,
}
Expand description
Contains all the information necessary for the initialization of a DLC.
Fields§
§offer_collateral: u64
The collateral for the offering party.
accept_collateral: u64
The collateral for the accepting party.
fee_rate: u64
The fee rate used to construct the transactions.
contract_infos: Vec<ContractInputInfo>
The set of contract that make up the DLC (a single DLC can be based on multiple contracts).
Implementations§
Trait Implementations§
Source§impl Clone for ContractInput
impl Clone for ContractInput
Source§fn clone(&self) -> ContractInput
fn clone(&self) -> ContractInput
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ContractInput
impl RefUnwindSafe for ContractInput
impl Send for ContractInput
impl Sync for ContractInput
impl Unpin for ContractInput
impl UnwindSafe for ContractInput
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