[][src]Struct casper_client::SessionStrParams

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

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

impl<'a> SessionStrParams<'a>[src]

pub fn with_path(
    session_path: &'a str,
    session_args_simple: Vec<&'a str>,
    session_args_complex: &'a str
) -> Self
[src]

Constructs a SessionStrParams using a session smart contract file.

pub fn with_name(
    session_name: &'a str,
    session_entry_point: &'a str,
    session_args_simple: Vec<&'a str>,
    session_args_complex: &'a str
) -> Self
[src]

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.

pub fn with_hash(
    session_hash: &'a str,
    session_entry_point: &'a str,
    session_args_simple: Vec<&'a str>,
    session_args_complex: &'a str
) -> Self
[src]

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.

pub fn with_package_name(
    session_package_name: &'a str,
    session_version: &'a str,
    session_entry_point: &'a str,
    session_args_simple: Vec<&'a str>,
    session_args_complex: &'a str
) -> Self
[src]

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.

pub fn with_package_hash(
    session_package_hash: &'a str,
    session_version: &'a str,
    session_entry_point: &'a str,
    session_args_simple: Vec<&'a str>,
    session_args_complex: &'a str
) -> Self
[src]

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.

Trait Implementations

impl<'a> Default for SessionStrParams<'a>[src]

impl<'a> TryInto<ExecutableDeployItem> for SessionStrParams<'a>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<'a> RefUnwindSafe for SessionStrParams<'a>

impl<'a> Send for SessionStrParams<'a>

impl<'a> Sync for SessionStrParams<'a>

impl<'a> Unpin for SessionStrParams<'a>

impl<'a> UnwindSafe for SessionStrParams<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromBits<T> for T

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]