[][src]Struct casperlabs_engine_test_support::SessionBuilder

pub struct SessionBuilder { /* fields omitted */ }

Builder for a Session.

Methods

impl SessionBuilder[src]

pub fn new(session_code: Code, session_args: impl ArgsParser) -> 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: PublicKey) -> Self[src]

Returns self with the provided account address set.

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

Returns self with the provided payment code and args 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: &[PublicKey]) -> 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 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, 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>,