pub struct ReceiptSourceBuilder { /* private fields */ }
Expand description
Binary layout for receipt source.
Implementations§
Source§impl ReceiptSourceBuilder
impl ReceiptSourceBuilder
Sourcepub fn from_binary(_bytes: &[u8]) -> Self
pub fn from_binary(_bytes: &[u8]) -> Self
Creates an instance of ReceiptSourceBuilder from binary payload. payload: Byte payload to use to serialize the object.
§Returns
A ReceiptSourceBuilder.
Sourcepub fn get_primary_id(&self) -> u32
pub fn get_primary_id(&self) -> u32
Gets transaction primary source (e.g. index within block).
§Returns
A Transaction primary source (e.g. index within block).
Sourcepub fn get_secondary_id(&self) -> u32
pub fn get_secondary_id(&self) -> u32
Gets transaction secondary source (e.g. index within aggregate).
§Returns
A Transaction secondary source (e.g. index within aggregate).
Trait Implementations§
Source§impl Clone for ReceiptSourceBuilder
impl Clone for ReceiptSourceBuilder
Source§fn clone(&self) -> ReceiptSourceBuilder
fn clone(&self) -> ReceiptSourceBuilder
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 ReceiptSourceBuilder
impl RefUnwindSafe for ReceiptSourceBuilder
impl Send for ReceiptSourceBuilder
impl Sync for ReceiptSourceBuilder
impl Unpin for ReceiptSourceBuilder
impl UnwindSafe for ReceiptSourceBuilder
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