pub struct GetTaskRequest {
pub task_id: String,
}Expand description
Request to retrieve task status
Poll for task completion and status updates.
§Usage
use turbomcp_protocol::types::tasks::GetTaskRequest;
let request = GetTaskRequest {
task_id: "task-123".to_string(),
};§Errors
- Invalid taskId: JSON-RPC error -32602 (Invalid params)
- Task expired: JSON-RPC error -32602
- Unauthorized: JSON-RPC error -32602 (if different auth context)
Fields§
§task_id: StringTask identifier to query
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 · 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
Auto Trait Implementations§
impl Freeze for GetTaskRequest
impl RefUnwindSafe for GetTaskRequest
impl Send for GetTaskRequest
impl Sync for GetTaskRequest
impl Unpin for GetTaskRequest
impl UnwindSafe for GetTaskRequest
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