[−][src]Struct rust_asana::api::API
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,