pub struct Baserow { /* private fields */ }
Expand description
Main client for interacting with the Baserow API
This struct implements the BaserowClient trait and provides methods for all API operations. It handles authentication, request signing, and maintains the client state.
Implementations§
Source§impl Baserow
impl Baserow
pub fn with_configuration(configuration: Configuration) -> Self
pub fn with_database_token(self, token: String) -> Self
Trait Implementations§
Source§impl BaserowClient for Baserow
impl BaserowClient for Baserow
Source§fn get_configuration(&self) -> Configuration
fn get_configuration(&self) -> Configuration
Get the underlying configuration
Source§fn get_client(&self) -> Client
fn get_client(&self) -> Client
Get the underlying HTTP client
Source§fn token_auth<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn BaserowClient>, TokenAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn token_auth<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn BaserowClient>, TokenAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Authenticates an existing user based on their email and their password.
If successful, an access token and a refresh token will be returned.
Source§fn table_fields<'life0, 'async_trait>(
&'life0 self,
table_id: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<TableField>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn table_fields<'life0, 'async_trait>(
&'life0 self,
table_id: u64,
) -> Pin<Box<dyn Future<Output = Result<Vec<TableField>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieves all fields for a given table.
Source§fn table_by_id(&self, id: u64) -> BaserowTable
fn table_by_id(&self, id: u64) -> BaserowTable
Returns a table by its ID.
Auto Trait Implementations§
impl Freeze for Baserow
impl !RefUnwindSafe for Baserow
impl Send for Baserow
impl Sync for Baserow
impl Unpin for Baserow
impl !UnwindSafe for Baserow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more