[][src]Struct exonum_cli::command::generate_config::GenerateConfig

pub struct GenerateConfig {
    pub common_config: PathBuf,
    pub output_dir: PathBuf,
    pub peer_address: SocketAddr,
    pub listen_address: Option<SocketAddr>,
    pub no_password: bool,
    pub master_key_pass: Option<PassInputMethod>,
    pub master_key_path: Option<PathBuf>,
}

Generate public and private configs of the node.

Fields

common_config: PathBuf

Path to node configuration template file.

output_dir: PathBuf

Path to a directory where public and private node configuration files will be saved.

peer_address: SocketAddr

External IP address of the node used for communications between nodes.

If no port is provided, the default Exonum port 6333 is used.

listen_address: Option<SocketAddr>

Listen IP address of the node used for communications between nodes.

If not provided it combined from all-zeros (0.0.0.0) IP address and the port number of the peer-address.

no_password: bool

Don't prompt for passwords when generating private keys.

master_key_pass: Option<PassInputMethod>

Passphrase entry method for master key.

Possible values are: stdin, env{:ENV_VAR_NAME}, pass:PASSWORD. Default Value is stdin. If ENV_VAR_NAME is not specified $EXONUM_MASTER_PASS is used by default.

master_key_path: Option<PathBuf>

Path to the master key file. If empty, file will be placed to <output_dir>.

Trait Implementations

impl ExonumCommand for GenerateConfig[src]

impl Debug for GenerateConfig[src]

impl StructOpt for GenerateConfig[src]

impl<'de> Deserialize<'de> for GenerateConfig[src]

impl Serialize for GenerateConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,