pub struct ArbitraryValidTransactionData {
pub addresses: Vec<AddressDataValue>,
pub input_addresses: Vec<AddressDataValue>,
pub output_addresses: Vec<AddressDataValue>,
pub fee: LinearFee,
}
Fields§
§addresses: Vec<AddressDataValue>
§input_addresses: Vec<AddressDataValue>
§output_addresses: Vec<AddressDataValue>
§fee: LinearFee
Implementations§
source§impl ArbitraryValidTransactionData
impl ArbitraryValidTransactionData
pub fn new( addresses: Vec<AddressDataValue>, input_addresses_values: Vec<AddressDataValue>, output_addresses_values: Vec<AddressDataValue>, fee: LinearFee ) -> Self
fn zip_addresses_and_values( addresses: &[AddressData], values: Vec<Value> ) -> Vec<AddressDataValue>
fn choose_random_output_subset<G: Gen>( source: &[AddressDataValue], total_input_funds: u64, gen: &mut G ) -> (Vec<AddressDataValue>, LinearFee)
fn distribute_values_for_outputs( outputs: Vec<AddressData>, funds_per_output: u64 ) -> Vec<AddressDataValue>
fn make_single_input( &self, address_data_value: AddressDataValue, ledger: &TestLedger ) -> Input
pub fn make_inputs(&mut self, ledger: &TestLedger) -> Vec<Input>
pub fn make_outputs_from_all_addresses(&self) -> Vec<Output<Address>>
pub fn make_outputs(&mut self) -> Vec<Output<Address>>
pub fn input_addresses(&mut self) -> Vec<AddressData>
Trait Implementations§
source§impl Arbitrary for ArbitraryValidTransactionData
impl Arbitrary for ArbitraryValidTransactionData
source§impl Clone for ArbitraryValidTransactionData
impl Clone for ArbitraryValidTransactionData
source§fn clone(&self) -> ArbitraryValidTransactionData
fn clone(&self) -> ArbitraryValidTransactionData
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 RefUnwindSafe for ArbitraryValidTransactionData
impl Send for ArbitraryValidTransactionData
impl Sync for ArbitraryValidTransactionData
impl Unpin for ArbitraryValidTransactionData
impl UnwindSafe for ArbitraryValidTransactionData
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