pub struct DatasetQueryBuilder { /* private fields */ }
Expand description
Builder for creating DatasetQuery instances
Implementations§
Source§impl DatasetQueryBuilder
impl DatasetQueryBuilder
Sourcepub fn new(database: MetabaseId) -> Self
pub fn new(database: MetabaseId) -> Self
Creates a new query builder
Sourcepub fn query_type(self, query_type: impl Into<String>) -> Self
pub fn query_type(self, query_type: impl Into<String>) -> Self
Sets the query type
Sourcepub fn parameters(self, params: Vec<QueryParameter>) -> Self
pub fn parameters(self, params: Vec<QueryParameter>) -> Self
Sets the parameters
Sourcepub fn constraints(self, constraints: QueryConstraints) -> Self
pub fn constraints(self, constraints: QueryConstraints) -> Self
Sets the constraints
Sourcepub fn build(self) -> DatasetQuery
pub fn build(self) -> DatasetQuery
Builds the DatasetQuery
Auto Trait Implementations§
impl Freeze for DatasetQueryBuilder
impl RefUnwindSafe for DatasetQueryBuilder
impl Send for DatasetQueryBuilder
impl Sync for DatasetQueryBuilder
impl Unpin for DatasetQueryBuilder
impl UnwindSafe for DatasetQueryBuilder
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