Struct meilisearch_sdk::tasks::TasksQuery
source · [−]pub struct TasksQuery<'a> {
pub client: &'a Client,
pub index_uid: Option<Vec<&'a str>>,
pub status: Option<Vec<&'a str>>,
pub task_type: Option<Vec<&'a str>>,
pub limit: Option<u32>,
pub from: Option<u32>,
}Fields
client: &'a Clientindex_uid: Option<Vec<&'a str>>status: Option<Vec<&'a str>>task_type: Option<Vec<&'a str>>limit: Option<u32>from: Option<u32>Implementations
sourceimpl<'a> TasksQuery<'a>
impl<'a> TasksQuery<'a>
pub fn new(client: &'a Client) -> TasksQuery<'a>
pub fn with_index_uid<'b>(
&'b mut self,
index_uid: impl IntoIterator<Item = &'a str>
) -> &'b mut TasksQuery<'a>
pub fn with_status<'b>(
&'b mut self,
status: impl IntoIterator<Item = &'a str>
) -> &'b mut TasksQuery<'a>
pub fn with_type<'b>(
&'b mut self,
task_type: impl IntoIterator<Item = &'a str>
) -> &'b mut TasksQuery<'a>
pub fn with_limit<'b>(&'b mut self, limit: u32) -> &'b mut TasksQuery<'a>
pub fn with_from<'b>(&'b mut self, from: u32) -> &'b mut TasksQuery<'a>
pub async fn execute(&'a self) -> Result<TasksResults, Error>
Trait Implementations
sourceimpl<'a> Clone for TasksQuery<'a>
impl<'a> Clone for TasksQuery<'a>
sourcefn clone(&self) -> TasksQuery<'a>
fn clone(&self) -> TasksQuery<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for TasksQuery<'a>
impl<'a> Debug for TasksQuery<'a>
sourceimpl<'a> Serialize for TasksQuery<'a>
impl<'a> Serialize for TasksQuery<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for TasksQuery<'a>
impl<'a> Send for TasksQuery<'a>
impl<'a> Sync for TasksQuery<'a>
impl<'a> Unpin for TasksQuery<'a>
impl<'a> UnwindSafe for TasksQuery<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more