Enum casper_types::Transform[][src]

pub enum Transform {
Show 18 variants Identity, WriteCLValue(CLValue), WriteAccount(AccountHash), WriteContractWasm, WriteContract, WriteContractPackage, WriteDeployInfo(DeployInfo), WriteEraInfo(EraInfo), WriteTransfer(Transfer), WriteBid(Box<Bid>), WriteWithdraw(Vec<UnbondingPurse>), AddInt32(i32), AddUInt64(u64), AddUInt128(U128), AddUInt256(U256), AddUInt512(U512), AddKeys(Vec<NamedKey>), Failure(String),
}
Expand description

The actual transformation performed while executing a deploy.

Variants

Identity

A transform having no effect.

WriteCLValue(CLValue)

Writes the given CLValue to global state.

Tuple Fields of WriteCLValue

0: CLValue
WriteAccount(AccountHash)

Writes the given Account to global state.

Tuple Fields of WriteAccount

0: AccountHash
WriteContractWasm

Writes a smart contract as Wasm to global state.

WriteContract

Writes a smart contract to global state.

WriteContractPackage

Writes a smart contract package to global state.

WriteDeployInfo(DeployInfo)

Writes the given DeployInfo to global state.

Tuple Fields of WriteDeployInfo

0: DeployInfo
WriteEraInfo(EraInfo)

Writes the given EraInfo to global state.

Tuple Fields of WriteEraInfo

0: EraInfo
WriteTransfer(Transfer)

Writes the given Transfer to global state.

Tuple Fields of WriteTransfer

0: Transfer
WriteBid(Box<Bid>)

Writes the given Bid to global state.

Tuple Fields of WriteBid

0: Box<Bid>
WriteWithdraw(Vec<UnbondingPurse>)

Writes the given Withdraw to global state.

Tuple Fields of WriteWithdraw

0: Vec<UnbondingPurse>
AddInt32(i32)

Adds the given i32.

Tuple Fields of AddInt32

0: i32
AddUInt64(u64)

Adds the given u64.

Tuple Fields of AddUInt64

0: u64
AddUInt128(U128)

Adds the given U128.

Tuple Fields of AddUInt128

0: U128
AddUInt256(U256)

Adds the given U256.

Tuple Fields of AddUInt256

0: U256
AddUInt512(U512)

Adds the given U512.

Tuple Fields of AddUInt512

0: U512
AddKeys(Vec<NamedKey>)

Adds the given collection of named keys.

Tuple Fields of AddKeys

0: Vec<NamedKey>
Failure(String)

A failed transformation, containing an error message.

Tuple Fields of Failure

0: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Generate a random value of T, using rng as the source of randomness.

Create an iterator that generates random values of T, using rng as the source of randomness. Read more

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more

Deserializes the slice into Self.

Deserializes the Vec<u8> into Self.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Serializes &self to a Vec<u8>.

Returns the length of the Vec<u8> which would be returned from a successful call to to_bytes() or into_bytes(). The data is not actually serialized, so this call is relatively cheap. Read more

Consumes self and serializes to a Vec<u8>.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Should always be Self

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Attempts to convert self into a target type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.