casper_client/cli/
deploy_str_params.rs

1/// Container for `Deploy` construction options.
2#[derive(Default, Debug)]
3pub struct DeployStrParams<'a> {
4    /// Path to secret key file.
5    pub secret_key: &'a str,
6    /// RFC3339-like formatted timestamp. e.g. `2018-02-16T00:31:37Z`.
7    ///
8    /// If `timestamp` is empty, the current time will be used. Note that timestamp is UTC, not
9    /// local.
10    ///
11    /// See [`humantime::parse_rfc3339_weak`] for more information.
12    pub timestamp: &'a str,
13    /// Time that the `Deploy` will remain valid for.
14    ///
15    /// A `Deploy` can only be included in a `Block` between `timestamp` and `timestamp + ttl`.
16    /// Input examples: '1hr 12min', '30min 50sec', '1day'.
17    ///
18    /// See [`humantime::parse_duration`] for more information.
19    pub ttl: &'a str,
20    /// Name of the chain, to avoid the `Deploy` from being accidentally or maliciously included in
21    /// a different chain.
22    pub chain_name: &'a str,
23    /// The hex-encoded public key of the account context under which the session code will be
24    /// executed.
25    pub session_account: &'a str,
26}