[−][src]Struct airtable_api::Airtable
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]
K: ToString,
B: ToString,
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]
&'_ self,
table: &'_ str,
view: &'_ str
) -> Result<Vec<Record>, APIError>
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]
&'_ self,
table: &'_ str,
records: Vec<Record>
) -> Result<Vec<Record>, APIError>
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]
&'_ self,
table: &'_ str,
records: Vec<Record>
) -> Result<Vec<Record>, APIError>
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]
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>,