[][src]Struct exonum_node::NodeApiConfig

pub struct NodeApiConfig {
    pub state_update_timeout: usize,
    pub public_api_address: Option<SocketAddr>,
    pub private_api_address: Option<SocketAddr>,
    pub public_allow_origin: Option<AllowOrigin>,
    pub private_allow_origin: Option<AllowOrigin>,
    pub server_restart: ServerRestartPolicy,
}

HTTP API configuration options.

Fields

state_update_timeout: usize

Timeout to update API state.

public_api_address: Option<SocketAddr>

Listen address for public API endpoints.

private_api_address: Option<SocketAddr>

Listen address for private API endpoints.

public_allow_origin: Option<AllowOrigin>

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

private_allow_origin: Option<AllowOrigin>

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

server_restart: ServerRestartPolicy

HTTP server restart policy. The server is restarted each time the list of endpoints is updated (e.g., due to a new service initialization).

Trait Implementations

impl Clone for NodeApiConfig[src]

impl Debug for NodeApiConfig[src]

impl Default for NodeApiConfig[src]

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

impl PartialEq<NodeApiConfig> for NodeApiConfig[src]

impl Serialize for NodeApiConfig[src]

impl StructuralPartialEq for NodeApiConfig[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

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

impl<T> InitializableFromZeroed for T where
    T: Default

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

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<V, T> VZip<V> for T where
    V: MultiLane<T>,