pub struct GetTaskRequest {
pub history_length: Option<i32>,
pub name: String,
pub tenant: Option<String>,
}Expand description
Represents a request for the tasks/get method.
JSON schema
{
"title": "Get Task Request",
"description": "Represents a request for the `tasks/get` method.",
"type": "object",
"required": [
"name"
],
"properties": {
"historyLength": {
"description": "The maximum number of messages to include in the history.",
"type": "integer",
"maximum": 2147483647.0,
"minimum": -2147483648.0
},
"name": {
"description": "The resource name of the task.\n Format: tasks/{task_id}",
"type": "string"
},
"tenant": {
"description": "Optional tenant, provided as a path parameter.",
"type": "string"
}
},
"additionalProperties": false,
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Fields§
§history_length: Option<i32>The maximum number of messages to include in the history.
name: StringThe resource name of the task. Format: tasks/{task_id}
tenant: Option<String>Optional tenant, provided as a path parameter.
Implementations§
Source§impl GetTaskRequest
impl GetTaskRequest
pub fn builder() -> GetTaskRequest
Trait Implementations§
Source§impl Clone for GetTaskRequest
impl Clone for GetTaskRequest
Source§fn clone(&self) -> GetTaskRequest
fn clone(&self) -> GetTaskRequest
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 GetTaskRequest
impl Debug for GetTaskRequest
Source§impl<'de> Deserialize<'de> for GetTaskRequest
impl<'de> Deserialize<'de> for GetTaskRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<GetTaskRequest> for GetTaskRequest
impl From<GetTaskRequest> for GetTaskRequest
Source§fn from(value: GetTaskRequest) -> Self
fn from(value: GetTaskRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for GetTaskRequest
impl Serialize for GetTaskRequest
Source§impl TryFrom<GetTaskRequest> for GetTaskRequest
impl TryFrom<GetTaskRequest> for GetTaskRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GetTaskRequest) -> Result<Self, ConversionError>
fn try_from(value: GetTaskRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GetTaskRequest
impl RefUnwindSafe for GetTaskRequest
impl Send for GetTaskRequest
impl Sync for GetTaskRequest
impl Unpin for GetTaskRequest
impl UnsafeUnpin for GetTaskRequest
impl UnwindSafe for GetTaskRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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