[][src]Struct casper_engine_test_support::SessionBuilder

pub struct SessionBuilder { /* fields omitted */ }

Builder for a Session.

Implementations

impl SessionBuilder[src]

pub fn new(session_code: Code, session_args: RuntimeArgs) -> Self[src]

Constructs a new SessionBuilder containing a deploy with the provided session code and session args, and with default values for the account address, payment code args, gas price, authorization keys and protocol version.

pub fn with_address(self, address: AccountHash) -> Self[src]

Returns self with the provided account address set.

pub fn with_payment_code(self, code: Code, args: RuntimeArgs) -> Self[src]

Returns self with the provided payment code and args set.

pub fn with_block_time(self, block_time: u64) -> Self[src]

Returns self with the provided block time set.

pub fn with_gas_price(self, price: u64) -> Self[src]

Returns self with the provided gas price set.

pub fn with_authorization_keys(self, keys: &[AccountHash]) -> Self[src]

Returns self with the provided authorization keys set.

pub fn with_protocol_version(self, version: ProtocolVersion) -> Self[src]

Returns self with the provided protocol version set.

pub fn without_expect_success(self) -> Self[src]

Will disable the expect_success call during Text_Context.run() method when expected to fail.

pub fn with_check_transfer_success(
    self,
    session_transfer_info: SessionTransferInfo
) -> Self
[src]

Provide SessionTransferInfo to validate transfer including gas used from source account

pub fn without_commit(self) -> Self[src]

Do not perform commit within the ['TestContext'].['run'] method.

pub fn build(self) -> Session[src]

Builds the Session.

Auto Trait Implementations

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, 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>,