pub struct DummyTestVtxoSpec {
pub amount: Amount,
pub expiry_height: BlockHeight,
pub exit_delta: BlockDelta,
pub user_keypair: Keypair,
pub server_keypair: Keypair,
}Expand description
Just a utility to write unit tests It can quickly create a vtxo that matches some desired parameters
Fields§
§amount: Amount§expiry_height: BlockHeight§exit_delta: BlockDelta§user_keypair: Keypair§server_keypair: KeypairImplementations§
Source§impl DummyTestVtxoSpec
impl DummyTestVtxoSpec
pub fn build(&self) -> (Transaction, Vtxo)
Auto Trait Implementations§
impl Freeze for DummyTestVtxoSpec
impl RefUnwindSafe for DummyTestVtxoSpec
impl Send for DummyTestVtxoSpec
impl Sync for DummyTestVtxoSpec
impl Unpin for DummyTestVtxoSpec
impl UnwindSafe for DummyTestVtxoSpec
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