[][src]Struct energenie_api::api::Session

pub struct Session {
    pub config: Config,
    pub api_key: String,
}

Fields

config: Configapi_key: String

Methods

impl Session[src]

pub fn start(config: Config) -> Result<Session, ApiError>[src]

Starts a new session

pub fn subdevices(&self) -> SubDevices[src]

Trait Implementations

impl Debug for Session[src]

Auto Trait Implementations

impl Send for Session

impl Sync for Session

impl Unpin for Session

impl UnwindSafe for Session

impl RefUnwindSafe for Session

Blanket Implementations

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

impl<T> From<T> for T[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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err