Skip to main content

ReceiptBody

Enum ReceiptBody 

Source
pub enum ReceiptBody {
Show 13 variants MosaicRentalFee(BalanceTransfer), NamespaceRentalFee(BalanceTransfer), HarvestFee(BalanceChange), LockHashCompleted(BalanceChange), LockHashExpired(BalanceChange), LockSecretCompleted(BalanceChange), LockSecretExpired(BalanceChange), LockHashCreated(BalanceChange), LockSecretCreated(BalanceChange), MosaicExpired(MosaicId), NamespaceExpired(NamespaceId), NamespaceDeleted(NamespaceId), Inflation(Mosaic),
}
Expand description

種類ごとのレシートの本体。

Variants§

§

MosaicRentalFee(BalanceTransfer)

モザイクを作った手数料。払った人から、手数料を受け取るアカウントへ

§

NamespaceRentalFee(BalanceTransfer)

ネームスペースを借りた手数料。払った人から、手数料を受け取るアカウントへ

§

HarvestFee(BalanceChange)

ブロックをハーベストして受け取った手数料

§

LockHashCompleted(BalanceChange)

ハッシュロックが使われて、預けたモザイクが戻った

§

LockHashExpired(BalanceChange)

ハッシュロックが期限切れになり、預けたモザイクがハーベストした人に渡った

§

LockSecretCompleted(BalanceChange)

シークレットロックが解かれて、モザイクが受取人に渡った

§

LockSecretExpired(BalanceChange)

シークレットロックが期限切れになり、預けたモザイクが戻った

§

LockHashCreated(BalanceChange)

ハッシュロックでモザイクを預けた

§

LockSecretCreated(BalanceChange)

シークレットロックでモザイクを預けた

§

MosaicExpired(MosaicId)

モザイクの期限が切れた

§

NamespaceExpired(NamespaceId)

ネームスペースの期限が切れた

§

NamespaceDeleted(NamespaceId)

期限が切れたネームスペースの猶予も過ぎて、消えた

§

Inflation(Mosaic)

ブロックごとに新しく発行された通貨

Implementations§

Source§

impl ReceiptBody

Source

pub fn receipt_type(&self) -> u16

種類。catbuffer の ReceiptType。

Trait Implementations§

Source§

impl Clone for ReceiptBody

Source§

fn clone(&self) -> ReceiptBody

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ReceiptBody

Source§

impl Debug for ReceiptBody

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ReceiptBody

Source§

impl PartialEq for ReceiptBody

Source§

fn eq(&self, other: &ReceiptBody) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ReceiptBody

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.