pub struct SecretLockTransactionBodyBuilder {
pub recipient_address: UnresolvedAddressDto,
pub secret: Hash256Dto,
pub mosaic: UnresolvedMosaicBuilder,
pub duration: BlockDurationDto,
pub hash_algorithm: LockHashAlgorithmDto,
}
Expand description
Binary layout for a secret lock transaction.
Fields§
§recipient_address: UnresolvedAddressDto
Locked mosaic recipient address.
secret: Hash256Dto
Secret.
mosaic: UnresolvedMosaicBuilder
Locked mosaic.
duration: BlockDurationDto
Number of blocks for which a lock should be valid.
hash_algorithm: LockHashAlgorithmDto
Hash algorithm.
Implementations§
Source§impl SecretLockTransactionBodyBuilder
impl SecretLockTransactionBodyBuilder
Sourcepub fn from_binary(payload: &[u8]) -> Self
pub fn from_binary(payload: &[u8]) -> Self
Creates an instance of SecretLockTransactionBodyBuilder from binary payload. payload: Byte payload to use to serialize the object.
§Returns
A SecretLockTransactionBodyBuilder.
Trait Implementations§
Source§impl Clone for SecretLockTransactionBodyBuilder
impl Clone for SecretLockTransactionBodyBuilder
Source§fn clone(&self) -> SecretLockTransactionBodyBuilder
fn clone(&self) -> SecretLockTransactionBodyBuilder
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 SecretLockTransactionBodyBuilder
impl RefUnwindSafe for SecretLockTransactionBodyBuilder
impl Send for SecretLockTransactionBodyBuilder
impl Sync for SecretLockTransactionBodyBuilder
impl Unpin for SecretLockTransactionBodyBuilder
impl UnwindSafe for SecretLockTransactionBodyBuilder
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