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.
§Example
use baserow_rs::{ConfigBuilder, Baserow, BaserowTableOperations, OrderDirection, filter::Filter, api::client::BaserowClient};
#[tokio::main]
async fn main() {
let config = ConfigBuilder::new()
.base_url("https://api.baserow.io")
.api_key("your-api-key")
.build();
let baserow = Baserow::with_configuration(config);
let table = baserow.table_by_id(1234);
// Build a query with filters and sorting
let results = table.rows()
.filter_by("Status", Filter::Equal, "Active")
.order_by("Created", OrderDirection::Desc)
.get()
.await
.unwrap();
println!("Found {} matching rows", results.count);
}
Implementations§
Source§impl RowRequestBuilder
impl RowRequestBuilder
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
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