Struct openethereum::secretstore::Configuration
source · [−]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
sourceimpl Clone for Configuration
impl Clone for Configuration
sourcefn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Configuration
impl Debug for Configuration
sourceimpl Default for Configuration
impl Default for Configuration
sourceimpl PartialEq<Configuration> for Configuration
impl PartialEq<Configuration> for Configuration
sourcefn eq(&self, other: &Configuration) -> bool
fn eq(&self, other: &Configuration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Configuration) -> bool
fn ne(&self, other: &Configuration) -> bool
This method tests for !=
.
impl StructuralPartialEq for Configuration
Auto Trait Implementations
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more