pub struct BaserowTable {
pub name: Option<String>,
/* private fields */
}
Expand description
Represents a table in Baserow
This struct provides methods for interacting with a specific table, including creating, reading, updating and deleting records.
Fields§
§name: Option<String>
Trait Implementations§
Source§impl BaserowTableOperations for BaserowTable
impl BaserowTableOperations for BaserowTable
Source§fn get_one_typed<'async_trait, T>(
self,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<T, Box<dyn Error>>> + Send + 'async_trait>>where
T: DeserializeOwned + 'async_trait,
Self: 'async_trait,
fn get_one_typed<'async_trait, T>(
self,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<T, Box<dyn Error>>> + Send + 'async_trait>>where
T: DeserializeOwned + 'async_trait,
Self: 'async_trait,
Retrieves a single record from the table by ID and deserializes it into the specified type Read more
Source§fn auto_map<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<BaserowTable, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
fn auto_map<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = Result<BaserowTable, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
Automatically maps the table fields to their corresponding types Read more
Source§fn rows(self) -> RowRequestBuilder
fn rows(self) -> RowRequestBuilder
Returns a builder for constructing complex table queries Read more
Source§fn create_one<'async_trait>(
self,
data: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
fn create_one<'async_trait>(
self,
data: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
Creates a single record in the table Read more
Source§fn get_one<'async_trait>(
self,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
fn get_one<'async_trait>(
self,
id: u64,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, Value>, Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
Retrieves a single record from the table by ID Read more
Source§impl Clone for BaserowTable
impl Clone for BaserowTable
Source§fn clone(&self) -> BaserowTable
fn clone(&self) -> BaserowTable
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for BaserowTable
impl Default for BaserowTable
Source§fn default() -> BaserowTable
fn default() -> BaserowTable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BaserowTable
impl<'de> Deserialize<'de> for BaserowTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BaserowTable
impl !RefUnwindSafe for BaserowTable
impl Send for BaserowTable
impl Sync for BaserowTable
impl Unpin for BaserowTable
impl !UnwindSafe for BaserowTable
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