pub struct BurnRequest { /* private fields */ }Expand description
Request for motes burn.
Implementations§
Source§impl BurnRequest
impl BurnRequest
Sourcepub fn new(
config: NativeRuntimeConfig,
state_hash: Digest,
protocol_version: ProtocolVersion,
transaction_hash: TransactionHash,
initiator: InitiatorAddr,
authorization_keys: BTreeSet<AccountHash>,
args: BurnArgs,
) -> Self
pub fn new( config: NativeRuntimeConfig, state_hash: Digest, protocol_version: ProtocolVersion, transaction_hash: TransactionHash, initiator: InitiatorAddr, authorization_keys: BTreeSet<AccountHash>, args: BurnArgs, ) -> Self
Creates new request object.
Sourcepub fn with_runtime_args(
config: NativeRuntimeConfig,
state_hash: Digest,
protocol_version: ProtocolVersion,
transaction_hash: TransactionHash,
initiator: InitiatorAddr,
authorization_keys: BTreeSet<AccountHash>,
args: RuntimeArgs,
) -> Self
pub fn with_runtime_args( config: NativeRuntimeConfig, state_hash: Digest, protocol_version: ProtocolVersion, transaction_hash: TransactionHash, initiator: InitiatorAddr, authorization_keys: BTreeSet<AccountHash>, args: RuntimeArgs, ) -> Self
Creates new request instance with runtime args.
Sourcepub fn config(&self) -> &NativeRuntimeConfig
pub fn config(&self) -> &NativeRuntimeConfig
Returns a reference to the runtime config.
Sourcepub fn state_hash(&self) -> Digest
pub fn state_hash(&self) -> Digest
Returns state root hash.
Sourcepub fn initiator(&self) -> &InitiatorAddr
pub fn initiator(&self) -> &InitiatorAddr
Returns initiator.
Returns authorization keys.
Sourcepub fn protocol_version(&self) -> ProtocolVersion
pub fn protocol_version(&self) -> ProtocolVersion
Returns protocol version.
Sourcepub fn transaction_hash(&self) -> TransactionHash
pub fn transaction_hash(&self) -> TransactionHash
Returns transaction hash.
Sourcepub fn args(&self) -> &BurnRequestArgs
pub fn args(&self) -> &BurnRequestArgs
Returns transfer args.
Sourcepub fn into_args(self) -> BurnRequestArgs
pub fn into_args(self) -> BurnRequestArgs
Into args.
Auto Trait Implementations§
impl Freeze for BurnRequest
impl RefUnwindSafe for BurnRequest
impl Send for BurnRequest
impl Sync for BurnRequest
impl Unpin for BurnRequest
impl UnwindSafe for BurnRequest
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more