Struct bee_message::payload::transaction::TransactionPayload
source · [−]pub struct TransactionPayload { /* private fields */ }
Expand description
A transaction to move funds.
Implementations
sourceimpl TransactionPayload
impl TransactionPayload
sourcepub fn builder() -> TransactionPayloadBuilder
pub fn builder() -> TransactionPayloadBuilder
Return a new TransactionPayloadBuilder
to build a TransactionPayload
.
sourcepub fn id(&self) -> TransactionId
pub fn id(&self) -> TransactionId
Computes the identifier of a TransactionPayload
.
sourcepub fn unlock_blocks(&self) -> &UnlockBlocks
pub fn unlock_blocks(&self) -> &UnlockBlocks
Return unlock blocks of a TransactionPayload
.
Trait Implementations
sourceimpl Clone for TransactionPayload
impl Clone for TransactionPayload
sourcefn clone(&self) -> TransactionPayload
fn clone(&self) -> TransactionPayload
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TransactionPayload
impl Debug for TransactionPayload
sourceimpl From<TransactionPayload> for Payload
impl From<TransactionPayload> for Payload
sourcefn from(payload: TransactionPayload) -> Self
fn from(payload: TransactionPayload) -> Self
Converts to this type from the input type.
sourceimpl Packable for TransactionPayload
impl Packable for TransactionPayload
sourcefn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
sourcefn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
Packs the instance to bytes and writes them to the passed writer.
sourcefn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
Reads bytes from the passed reader and unpacks them into an instance.
sourcefn pack_new(&self) -> Vec<u8, Global>
fn pack_new(&self) -> Vec<u8, Global>
Packs the instance to bytes and writes them to a newly allocated vector.
sourceimpl PartialEq<TransactionPayload> for TransactionPayload
impl PartialEq<TransactionPayload> for TransactionPayload
sourcefn eq(&self, other: &TransactionPayload) -> bool
fn eq(&self, other: &TransactionPayload) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TransactionPayload) -> bool
fn ne(&self, other: &TransactionPayload) -> bool
This method tests for !=
.
impl Eq for TransactionPayload
impl StructuralEq for TransactionPayload
impl StructuralPartialEq for TransactionPayload
Auto Trait Implementations
impl RefUnwindSafe for TransactionPayload
impl Send for TransactionPayload
impl Sync for TransactionPayload
impl Unpin for TransactionPayload
impl UnwindSafe for TransactionPayload
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more