[−][src]Struct casper_client::SessionStrParams
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]
session_path: &'a str,
session_args_simple: Vec<&'a str>,
session_args_complex: &'a str
) -> Self
Constructs a SessionStrParams
using a session smart contract file.
session_path
is the path to the compiled Wasm session code.- See the struct docs for a description of
session_args_simple
andsession_args_complex
.
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]
session_name: &'a str,
session_entry_point: &'a str,
session_args_simple: Vec<&'a str>,
session_args_complex: &'a str
) -> Self
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
andsession_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]
session_hash: &'a str,
session_entry_point: &'a str,
session_args_simple: Vec<&'a str>,
session_args_complex: &'a str
) -> Self
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
andsession_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]
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
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 ifsession_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
andsession_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]
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
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 ifsession_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
andsession_args_complex
.
Trait Implementations
impl<'a> Default for SessionStrParams<'a>
[src]
fn default() -> SessionStrParams<'a>
[src]
impl<'a> TryInto<ExecutableDeployItem> for SessionStrParams<'a>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromBits<T> for T
pub fn from_bits(other: T) -> T
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,