pub struct TransactionBuilder {
pub signature: SignatureDto,
pub signer_public_key: KeyDto,
pub version: u8,
pub network: NetworkTypeDto,
pub _type: EntityTypeDto,
pub fee: AmountDto,
pub deadline: TimestampDto,
}Expand description
Binary layout for a transaction.
Fields§
§signature: SignatureDtoEntity signature.
signer_public_key: KeyDtoEntity signer’s public key.
version: u8Entity version.
network: NetworkTypeDtoEntity network.
_type: EntityTypeDtoEntity type.
fee: AmountDtoTransaction fee.
deadline: TimestampDtoTransaction deadline.
Implementations§
Source§impl TransactionBuilder
impl TransactionBuilder
Sourcepub fn from_binary(payload: &[u8]) -> Self
pub fn from_binary(payload: &[u8]) -> Self
Creates an instance of TransactionBuilder from binary payload. payload: Byte payload to use to serialize the object.
§Returns
A TransactionBuilder.
Trait Implementations§
Source§impl Clone for TransactionBuilder
impl Clone for TransactionBuilder
Source§fn clone(&self) -> TransactionBuilder
fn clone(&self) -> TransactionBuilder
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 TransactionBuilder
impl RefUnwindSafe for TransactionBuilder
impl Send for TransactionBuilder
impl Sync for TransactionBuilder
impl Unpin for TransactionBuilder
impl UnwindSafe for TransactionBuilder
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