[][src]Struct rust_asana::api::API

pub struct API { /* fields omitted */ }

This handles interactions with the Asana API.

It posts payloads to the API and returns the result. It also handles authentication through a Personal Access Token (PAT)

Implementations

impl API[src]

pub fn from_token<S: AsRef<str>>(token: S) -> Self[src]

Creates a new API struct from the given token

pub fn token(&self) -> &str[src]

Returns the token provided when the API struct was created

Auto Trait Implementations

impl !RefUnwindSafe for API

impl Send for API

impl Sync for API

impl Unpin for API

impl !UnwindSafe for API

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