pub struct ListTasksParams {
pub tenant: Option<String>,
pub context_id: Option<String>,
pub status: Option<TaskState>,
pub page_size: Option<u32>,
pub page_token: Option<String>,
pub status_timestamp_after: Option<String>,
pub include_artifacts: Option<bool>,
pub history_length: Option<u32>,
}Expand description
Parameters for the ListTasks method.
All fields are optional filters; omitting them returns all tasks visible to the caller (subject to the server’s default page size).
Fields§
§tenant: Option<String>Optional tenant for multi-tenancy.
context_id: Option<String>Filter to tasks belonging to this conversation context.
status: Option<TaskState>Filter to tasks in this state.
page_size: Option<u32>Maximum number of tasks to return per page. Clamped by the server
to max_page_size (default 1000). Clients may request any u32 value
but the server will cap it.
page_token: Option<String>Pagination cursor returned by the previous response.
status_timestamp_after: Option<String>Return only tasks whose status changed after this ISO 8601 timestamp.
include_artifacts: Option<bool>If true, include artifact data in the returned tasks.
history_length: Option<u32>Number of historical messages to include per task.
Trait Implementations§
Source§impl AcceptedFields for ListTasksParams
impl AcceptedFields for ListTasksParams
Source§fn accepted_fields() -> &'static [&'static str]
fn accepted_fields() -> &'static [&'static str]
Every JSON key this type accepts, sorted, with no duplicates.
Source§impl Clone for ListTasksParams
impl Clone for ListTasksParams
Source§fn clone(&self) -> ListTasksParams
fn clone(&self) -> ListTasksParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListTasksParams
impl Debug for ListTasksParams
Source§impl Default for ListTasksParams
impl Default for ListTasksParams
Source§fn default() -> ListTasksParams
fn default() -> ListTasksParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListTasksParams
impl<'de> Deserialize<'de> for ListTasksParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListTasksParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListTasksParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ListTasksParams
impl Serialize for ListTasksParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<ListTasksParams> for ListTasksRequest
impl TryFrom<ListTasksParams> for ListTasksRequest
Source§type Error = ConvertError
type Error = ConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ListTasksParams,
) -> Result<ListTasksRequest, <ListTasksRequest as TryFrom<ListTasksParams>>::Error>
fn try_from( value: ListTasksParams, ) -> Result<ListTasksRequest, <ListTasksRequest as TryFrom<ListTasksParams>>::Error>
Performs the conversion.
Source§impl TryFrom<ListTasksRequest> for ListTasksParams
impl TryFrom<ListTasksRequest> for ListTasksParams
Source§type Error = ConvertError
type Error = ConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
value: ListTasksRequest,
) -> Result<ListTasksParams, <ListTasksParams as TryFrom<ListTasksRequest>>::Error>
fn try_from( value: ListTasksRequest, ) -> Result<ListTasksParams, <ListTasksParams as TryFrom<ListTasksRequest>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ListTasksParams
impl RefUnwindSafe for ListTasksParams
impl Send for ListTasksParams
impl Sync for ListTasksParams
impl Unpin for ListTasksParams
impl UnsafeUnpin for ListTasksParams
impl UnwindSafe for ListTasksParams
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request