Struct exonum::node::NodeApiConfig [] [src]

pub struct NodeApiConfig {
    pub state_update_timeout: usize,
    pub enable_blockchain_explorer: bool,
    pub public_api_address: Option<SocketAddr>,
    pub private_api_address: Option<SocketAddr>,
    pub allow_origin: Option<AllowOrigin>,
}

An api configuration options.

Fields

Timeout to update api state.

Enable api endpoints for the blockchain_explorer on public api address.

Listen address for public api endpoints.

Listen address for private api endpoints.

Cross-origin resource sharing (CORS) options for responses returned by API handlers.

Trait Implementations

impl Clone for NodeApiConfig
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for NodeApiConfig
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for NodeApiConfig
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for NodeApiConfig

impl Sync for NodeApiConfig