[][src]Struct exonum_api::ApiAggregator

pub struct ApiAggregator { /* fields omitted */ }

Aggregator of ApiBuilders. Each builder is associated with a mount point, which is used to separate endpoints for different builders.

Methods

impl ApiAggregator[src]

pub fn new() -> Self[src]

Creates an empty API aggregator.

pub fn insert(&mut self, name: &str, api: ApiBuilder)[src]

Inserts a handler for a set of endpoints with the given mount point.

pub fn extend(
    &mut self,
    endpoints: impl IntoIterator<Item = (String, ApiBuilder)>
)
[src]

Extends the list of endpoint handlers with the new specified handlers.

Trait Implementations

impl Clone for ApiAggregator[src]

impl Debug for ApiAggregator[src]

impl Default for ApiAggregator[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> From<T> for T[src]

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>,