pub struct QueryBuilder<T> {
pub filters: Option<Value>,
pub fields: Option<String>,
pub sort: Option<SortField>,
pub reverse: Option<bool>,
pub results: Option<u8>,
pub page: Option<u8>,
pub user: Option<String>,
pub count: Option<bool>,
pub compact_filters: Option<bool>,
pub normalized_filters: Option<bool>,
/* private fields */
}Fields§
§filters: Option<Value>§fields: Option<String>§sort: Option<SortField>§reverse: Option<bool>§results: Option<u8>§page: Option<u8>§user: Option<String>§count: Option<bool>§compact_filters: Option<bool>§normalized_filters: Option<bool>Implementations§
Source§impl<T> QueryBuilder<T>
impl<T> QueryBuilder<T>
pub fn new() -> Self
pub fn filters(self, filters: &String) -> Self
pub fn reverse(self) -> Self
pub fn results(self, num_results: u8) -> Self
pub fn page(self, page_num: u8) -> Self
pub fn user(self, user_id: &String) -> Self
pub fn enable_compact_filters(self) -> Self
pub fn enable_normalized_filters(self) -> Self
pub fn build(self) -> Query<T>
Source§impl QueryBuilder<VnQuery>
impl QueryBuilder<VnQuery>
pub fn fields(self, fields: VnFieldChoices) -> Self
pub fn enable_count(self) -> Self
pub fn sort(self, sort_field: SortField) -> Self
Source§impl QueryBuilder<ReleaseQuery>
impl QueryBuilder<ReleaseQuery>
pub fn fields(self, fields: ReleaseFieldChoices) -> Self
pub fn enable_count(self) -> Self
pub fn sort(self, sort_field: SortField) -> Self
Source§impl QueryBuilder<ProducerQuery>
impl QueryBuilder<ProducerQuery>
pub fn fields(self, fields: ProducerFieldChoices) -> Self
pub fn enable_count(self) -> Self
pub fn sort(self, sort_field: SortField) -> Self
Source§impl QueryBuilder<CharacterQuery>
impl QueryBuilder<CharacterQuery>
pub fn fields(self, fields: CharacterFieldChoices) -> Self
pub fn enable_count(self) -> Self
pub fn sort(self, sort_field: SortField) -> Self
Source§impl QueryBuilder<StaffQuery>
impl QueryBuilder<StaffQuery>
pub fn fields(self, fields: StaffFieldChoices) -> Self
pub fn enable_count(self) -> Self
pub fn sort(self, sort_field: SortField) -> Self
Source§impl QueryBuilder<TagQuery>
impl QueryBuilder<TagQuery>
pub fn fields(self, fields: TagFieldChoices) -> Self
pub fn enable_count(self) -> Self
pub fn sort(self, sort_field: SortField) -> Self
Source§impl QueryBuilder<TraitQuery>
impl QueryBuilder<TraitQuery>
pub fn fields(self, fields: TraitFieldChoices) -> Self
pub fn enable_count(self) -> Self
pub fn sort(self, sort_field: SortField) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for QueryBuilder<T>
impl<T> RefUnwindSafe for QueryBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for QueryBuilder<T>where
T: Send,
impl<T> Sync for QueryBuilder<T>where
T: Sync,
impl<T> Unpin for QueryBuilder<T>where
T: Unpin,
impl<T> UnwindSafe for QueryBuilder<T>where
T: UnwindSafe,
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