pub struct AggregateTransactionBodyBuilder {
pub transactions_hash: Hash256Dto,
pub transactions: Vec<Box<dyn EmbeddedTransactionHelper + 'static>>,
pub cosignatures: Vec<CosignatureBuilder>,
}
Expand description
Binary layout for an aggregate transaction.
Fields§
§transactions_hash: Hash256Dto
Aggregate hash of an aggregate’s transactions.
transactions: Vec<Box<dyn EmbeddedTransactionHelper + 'static>>
Sub-transaction data (transactions are variable sized and payload size is in bytes).
cosignatures: Vec<CosignatureBuilder>
Cosignatures data (fills remaining body space after transactions).
Implementations§
Source§impl AggregateTransactionBodyBuilder
impl AggregateTransactionBodyBuilder
Sourcepub fn from_binary(payload: &[u8]) -> Self
pub fn from_binary(payload: &[u8]) -> Self
Creates an instance of AggregateTransactionBodyBuilder from binary payload. payload: Byte payload to use to serialize the object.
§Returns
A AggregateTransactionBodyBuilder.
Sourcepub fn serialize_aligned(
transaction: &Box<dyn EmbeddedTransactionHelper>,
) -> Vec<u8> ⓘ
pub fn serialize_aligned( transaction: &Box<dyn EmbeddedTransactionHelper>, ) -> Vec<u8> ⓘ
Sourcepub fn size_aligned(transaction: &Box<dyn EmbeddedTransactionHelper>) -> usize
pub fn size_aligned(transaction: &Box<dyn EmbeddedTransactionHelper>) -> usize
Trait Implementations§
Source§impl Clone for AggregateTransactionBodyBuilder
impl Clone for AggregateTransactionBodyBuilder
Source§fn clone(&self) -> AggregateTransactionBodyBuilder
fn clone(&self) -> AggregateTransactionBodyBuilder
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 moreAuto Trait Implementations§
impl Freeze for AggregateTransactionBodyBuilder
impl !RefUnwindSafe for AggregateTransactionBodyBuilder
impl Send for AggregateTransactionBodyBuilder
impl Sync for AggregateTransactionBodyBuilder
impl Unpin for AggregateTransactionBodyBuilder
impl !UnwindSafe for AggregateTransactionBodyBuilder
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