[][src]Enum exonum_testkit::ApiKind

#[non_exhaustive]pub enum ApiKind {
    System,
    Explorer,
    RustRuntime,
    Service(&'static str),
}

Kind of public or private REST API of an Exonum node.

ApiKind allows to use get* and post* methods of TestKitApi more safely.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
System

api/system endpoints of the system API node plugin. To access endpoints, the plugin must be attached to the testkit.

Explorer

Endpoints of the REST API of the explorer service. The service must be included to the testkit in order for endpoints to work.

RustRuntime

api/runtimes/rust endpoints corresponding to Rust runtime of the Exonum REST API.

Service(&'static str)

Endpoints corresponding to a service with the specified string identifier.

Trait Implementations

impl Clone for ApiKind[src]

impl Copy for ApiKind[src]

impl Debug for ApiKind[src]

impl Display for ApiKind[src]

Auto Trait Implementations

impl RefUnwindSafe for ApiKind

impl Send for ApiKind

impl Sync for ApiKind

impl Unpin for ApiKind

impl UnwindSafe for ApiKind

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> ToString for T where
    T: Display + ?Sized
[src]

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