pub struct ReceiptSource {
pub primary_id: u32,
pub secondary_id: u32,
}Expand description
レシートやステートメントの元になったもの。catapult の model::ReceiptSource。
primary_id はブロックの中のトランザクションの何件目か(1から)で、ブロックそのものなら 0。
secondary_id はアグリゲートの中のトランザクションの何件目か(1から)で、アグリゲートの中でなければ 0。
Fields§
§primary_id: u32§secondary_id: u32Trait Implementations§
Source§impl Clone for ReceiptSource
impl Clone for ReceiptSource
Source§fn clone(&self) -> ReceiptSource
fn clone(&self) -> ReceiptSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReceiptSource
Source§impl Debug for ReceiptSource
impl Debug for ReceiptSource
impl Eq for ReceiptSource
Source§impl Hash for ReceiptSource
impl Hash for ReceiptSource
Source§impl Ord for ReceiptSource
impl Ord for ReceiptSource
Source§fn cmp(&self, other: &ReceiptSource) -> Ordering
fn cmp(&self, other: &ReceiptSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReceiptSource
impl PartialEq for ReceiptSource
Source§impl PartialOrd for ReceiptSource
impl PartialOrd for ReceiptSource
impl StructuralPartialEq for ReceiptSource
Auto Trait Implementations§
impl Freeze for ReceiptSource
impl RefUnwindSafe for ReceiptSource
impl Send for ReceiptSource
impl Sync for ReceiptSource
impl Unpin for ReceiptSource
impl UnsafeUnpin for ReceiptSource
impl UnwindSafe for ReceiptSource
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