[][src]Struct exonum_api::ApiBuilder

pub struct ApiBuilder {
    pub public_scope: ApiScope,
    pub private_scope: ApiScope,
}

Exonum API builder, which is used to add endpoints to the node API.

Fields

public_scope: ApiScope

Public API scope.

private_scope: ApiScope

Private API scope.

Methods

impl ApiBuilder[src]

pub fn new() -> Self[src]

Create a new API builder.

pub fn public_scope(&mut self) -> &mut ApiScope[src]

Return a mutable reference to the public API scope builder.

pub fn private_scope(&mut self) -> &mut ApiScope[src]

Return a mutable reference to the private API scope builder.

Trait Implementations

impl Clone for ApiBuilder[src]

impl Debug for ApiBuilder[src]

impl Default for ApiBuilder[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>,