Struct casper_client::SessionStrParams[][src]

pub struct SessionStrParams<'a> { /* fields omitted */ }
Expand description

Container for session-related arguments used while constructing a Deploy.

session_args_simple

For methods taking session_args_simple, this parameter is the session contract arguments, in the form <NAME:TYPE='VALUE'> or <NAME:TYPE=null>.

There are further details in the docs for the equivalent payment_args_simple.

session_args_complex

For methods taking session_args_complex, this parameter is the session contract arguments, in the form of a ToBytes-encoded file.


Note while multiple payment args can be specified for a single session code instance, only one of session_args_simple and session_args_complex may be used.

Implementations

Constructs a SessionStrParams using a session smart contract file.

Constructs a SessionStrParams using a stored contract’s name.

  • session_name is the name of the stored contract (associated with the executing account) to be called as the session.
  • session_entry_point is the name of the method that will be used when calling the session contract.
  • See the struct docs for a description of session_args_simple and session_args_complex.

Constructs a SessionStrParams using a stored contract’s hex-encoded hash.

  • session_hash is the hex-encoded hash of the stored contract to be called as the session.
  • session_entry_point is the name of the method that will be used when calling the session contract.
  • See the struct docs for a description of session_args_simple and session_args_complex.

Constructs a SessionStrParams using a stored contract’s package name.

  • session_package_name is the name of the stored package to be called as the session.
  • session_version is the version of the called session contract. The latest will be used if session_version is empty.
  • session_entry_point is the name of the method that will be used when calling the session contract.
  • See the struct docs for a description of session_args_simple and session_args_complex.

Constructs a SessionStrParams using a stored contract’s package hash.

  • session_package_hash is the hex-encoded hash of the stored package to be called as the session.
  • session_version is the version of the called session contract. The latest will be used if session_version is empty.
  • session_entry_point is the name of the method that will be used when calling the session contract.
  • See the struct docs for a description of session_args_simple and session_args_complex.

Constructs a SessionStrParams representing a Transfer type of Deploy.

Trait Implementations

Returns the “default value” for a 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.

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

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more