[][src]Struct ainoio_agent::AinoConfig

pub struct AinoConfig {
    pub url: String,
    pub api_key: String,
    pub send_interval: u32,
}

The configuration needed for the Aino.io agent.

Fields

url: String

Aino.io API URL. Should be https://data.aino.io/rest/v2/transaction.

api_key: String

Your API key. Can be obtained from the API Access tab in the application.

send_interval: u32

The interval for the agent to send a batch of Transactions.

Methods

impl AinoConfig[src]

pub fn new() -> Result<Self, AinoError>[src]

Reads in the configuration files and environment variables and constructs the configuration object.

Trait Implementations

impl Clone for AinoConfig[src]

impl Debug for AinoConfig[src]

impl<'de> Deserialize<'de> for AinoConfig[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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.