pub struct Configuration {
Show 18 fields pub enabled: bool, pub http_enabled: bool, pub auto_migrate_enabled: bool, pub acl_check_contract_address: Option<ContractAddress>, pub service_contract_address: Option<ContractAddress>, pub service_contract_srv_gen_address: Option<ContractAddress>, pub service_contract_srv_retr_address: Option<ContractAddress>, pub service_contract_doc_store_address: Option<ContractAddress>, pub service_contract_doc_sretr_address: Option<ContractAddress>, pub self_secret: Option<NodeSecretKey>, pub nodes: BTreeMap<Public, (String, u16)>, pub key_server_set_contract_address: Option<ContractAddress>, pub interface: String, pub port: u16, pub http_interface: String, pub http_port: u16, pub data_path: String, pub admin_public: Option<Public>,
}
Expand description

Secret store configuration

Fields

enabled: bool

Is secret store functionality enabled?

http_enabled: bool

Is HTTP API enabled?

auto_migrate_enabled: bool

Is auto migrate enabled.

acl_check_contract_address: Option<ContractAddress>

ACL check contract address.

service_contract_address: Option<ContractAddress>

Service contract address.

service_contract_srv_gen_address: Option<ContractAddress>

Server key generation service contract address.

service_contract_srv_retr_address: Option<ContractAddress>

Server key retrieval service contract address.

service_contract_doc_store_address: Option<ContractAddress>

Document key store service contract address.

service_contract_doc_sretr_address: Option<ContractAddress>

Document key shadow retrieval service contract address.

self_secret: Option<NodeSecretKey>

This node secret.

nodes: BTreeMap<Public, (String, u16)>

Other nodes IDs + addresses.

key_server_set_contract_address: Option<ContractAddress>

Key Server Set contract address. If None, ‘nodes’ map is used.

interface: String

Interface to listen to

port: u16

Port to listen to

http_interface: String

Interface to listen to

http_port: u16

Port to listen to

data_path: String

Data directory path for secret store

admin_public: Option<Public>

Administrator public key.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.