[][src]Struct airtable_api::Airtable

pub struct Airtable { /* fields omitted */ }

Entrypoint for interacting with the Airtable API.

Implementations

impl Airtable[src]

pub fn new<K, B>(key: K, base_id: B) -> Self where
    K: ToString,
    B: ToString
[src]

Create a new Airtable client struct. It takes a type that can convert into an &str (String or Vec<u8> for example). As long as the function is given a valid API Key and Base ID your requests will work.

pub fn new_from_env() -> Self[src]

Create a new Airtable client struct from environment variables. It takes a type that can convert into an &str (String or Vec<u8> for example). As long as the function is given a valid API Key and Base ID your requests will work.

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

Get the currently set API key.

pub async fn list_records<'_, '_, '_>(
    &'_ self,
    table: &'_ str,
    view: &'_ str
) -> Result<Vec<Record>, APIError>
[src]

List records in a table for a particular view.

pub async fn create_records<'_, '_>(
    &'_ self,
    table: &'_ str,
    records: Vec<Record>
) -> Result<Vec<Record>, APIError>
[src]

Bulk create records in a table.

Due to limitations on the Airtable API, you can only bulk create 10 records at a time.

pub async fn update_records<'_, '_>(
    &'_ self,
    table: &'_ str,
    records: Vec<Record>
) -> Result<Vec<Record>, APIError>
[src]

Bulk update records in a table.

Due to limitations on the Airtable API, you can only bulk update 10 records at a time.

Auto Trait Implementations

impl !RefUnwindSafe for Airtable

impl !Send for Airtable

impl !Sync for Airtable

impl Unpin for Airtable

impl !UnwindSafe for Airtable

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.