pub struct DeployStrParams<'a> {
pub secret_key: &'a str,
pub timestamp: &'a str,
pub ttl: &'a str,
pub chain_name: &'a str,
pub session_account: &'a str,
pub gas_price_tolerance: &'a str,
}Expand description
Container for Deploy construction options.
Fields§
§secret_key: &'a strPath to secret key file if the std-fs-io feature is enabled (enabled by default), or a
PEM-encoded secret key if not.
If secret_key is empty, the new deploy will not be signed and will need to be signed (e.g.
via sign_deploy_file) at least once in order to be made valid.
timestamp: &'a strRFC3339-like formatted timestamp. e.g. 2018-02-16T00:31:37Z.
If timestamp is empty, the current time will be used. Note that timestamp is UTC, not
local.
See humantime::parse_rfc3339_weak for more information.
ttl: &'a strTime that the Deploy will remain valid for.
A Deploy can only be included in a Block between timestamp and timestamp + ttl.
Input examples: ‘1hr 12min’, ‘30min 50sec’, ‘1day’.
See humantime::parse_duration for more information.
chain_name: &'a strName of the chain, to avoid the Deploy from being accidentally or maliciously included in
a different chain.
session_account: &'a strThe hex-encoded public key of the account context under which the session code will be executed.
If session_account is empty, the account’s public key will be derived from the provided
secret_key. It is an error for both fields to be empty.
gas_price_tolerance: &'a strGas price for the deploy.
Trait Implementations§
Source§impl<'a> Debug for DeployStrParams<'a>
impl<'a> Debug for DeployStrParams<'a>
Source§impl<'a> Default for DeployStrParams<'a>
impl<'a> Default for DeployStrParams<'a>
Source§fn default() -> DeployStrParams<'a>
fn default() -> DeployStrParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeployStrParams<'a>
impl<'a> RefUnwindSafe for DeployStrParams<'a>
impl<'a> Send for DeployStrParams<'a>
impl<'a> Sync for DeployStrParams<'a>
impl<'a> Unpin for DeployStrParams<'a>
impl<'a> UnwindSafe for DeployStrParams<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more