pub struct RowRequestBuilder { /* private fields */ }
Expand description
Builder for constructing table row queries
Provides a fluent interface for building queries with filtering, sorting, and other options.
Implementations§
Source§impl RowRequestBuilder
impl RowRequestBuilder
pub fn new() -> Self
Sourcepub fn size(self, size: i32) -> Self
pub fn size(self, size: i32) -> Self
Set the number of rows to return per page
§Arguments
size
- The number of rows per page (must be positive)
Sourcepub fn user_field_names(self, enabled: bool) -> Self
pub fn user_field_names(self, enabled: bool) -> Self
Set whether to use user-friendly field names in the response
Note: This option is mutually exclusive with auto_map(). If auto_map() has been called, this setting will be ignored as field name mapping is handled by the TableMapper.
pub fn with_table(self, table: BaserowTable) -> Self
pub fn with_baserow(self, baserow: Baserow) -> Self
Sourcepub fn order_by(self, field: &str, direction: OrderDirection) -> Self
pub fn order_by(self, field: &str, direction: OrderDirection) -> Self
Add sorting criteria to the query
Sourcepub fn filter_by(self, field: &str, filter_op: Filter, value: &str) -> Self
pub fn filter_by(self, field: &str, filter_op: Filter, value: &str) -> Self
Add a filter condition to the query
Sourcepub async fn get<T>(self) -> Result<TypedRowsResponse<T>, Box<dyn Error>>where
T: DeserializeOwned + 'static,
pub async fn get<T>(self) -> Result<TypedRowsResponse<T>, Box<dyn Error>>where
T: DeserializeOwned + 'static,
Execute the query and return typed results
Trait Implementations§
Source§impl Default for RowRequestBuilder
impl Default for RowRequestBuilder
Source§fn default() -> RowRequestBuilder
fn default() -> RowRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RowRequestBuilder
impl !RefUnwindSafe for RowRequestBuilder
impl Send for RowRequestBuilder
impl Sync for RowRequestBuilder
impl Unpin for RowRequestBuilder
impl !UnwindSafe for RowRequestBuilder
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