pub struct TagQuery {
pub expr: TagQueryKind,
pub limit: Option<u32>,
pub offset: Option<u32>,
}
Expand description
Represents a complete query, including logical expression and pagination.
Fields§
§expr: TagQueryKind
The logical expression used for filtering.
limit: Option<u32>
The maximum number of results to return.
offset: Option<u32>
The offset into the result set.
Implementations§
Source§impl TagQuery
impl TagQuery
Sourcepub fn new(expr: TagQueryKind) -> Self
pub fn new(expr: TagQueryKind) -> Self
Creates a new query from a query expression.
Sourcepub fn with_limit(self, limit: u32) -> Self
pub fn with_limit(self, limit: u32) -> Self
Sets the LIMIT
for this query.
Sourcepub fn with_offset(self, offset: u32) -> Self
pub fn with_offset(self, offset: u32) -> Self
Sets the OFFSET
for this query.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TagQuery
impl RefUnwindSafe for TagQuery
impl Send for TagQuery
impl Sync for TagQuery
impl Unpin for TagQuery
impl UnwindSafe for TagQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more