Struct souk::shared::task::task_response::TaskResponse
source · pub struct TaskResponse {
pub uuid: String,
pub kind: TaskResponseKind,
pub initial_response: Optional<Vec<TaskProgress>>,
pub update_response: Optional<TaskProgress>,
pub result_response: Optional<TaskResult>,
}
Fields§
§uuid: String
The UUID of the corresponding task
kind: TaskResponseKind
§initial_response: Optional<Vec<TaskProgress>>
Initial response that provides information about this task and all related steps / subtasks
update_response: Optional<TaskProgress>
§result_response: Optional<TaskResult>
Implementations§
source§impl TaskResponse
impl TaskResponse
pub fn new_initial(uuid: String, steps: Vec<TaskProgress>) -> Self
pub fn new_update(uuid: String, step: TaskProgress) -> Self
pub fn new_result(uuid: String, result: TaskResult) -> Self
Trait Implementations§
source§impl Clone for TaskResponse
impl Clone for TaskResponse
source§fn clone(&self) -> TaskResponse
fn clone(&self) -> TaskResponse
Returns a copy 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 TaskResponse
impl Debug for TaskResponse
source§impl<'de> Deserialize<'de> for TaskResponse
impl<'de> Deserialize<'de> for TaskResponse
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 PartialEq<TaskResponse> for TaskResponse
impl PartialEq<TaskResponse> for TaskResponse
source§fn eq(&self, other: &TaskResponse) -> bool
fn eq(&self, other: &TaskResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TaskResponse
impl Serialize for TaskResponse
source§impl Type for TaskResponse
impl Type for TaskResponse
impl StructuralPartialEq for TaskResponse
Auto Trait Implementations§
impl RefUnwindSafe for TaskResponse
impl Send for TaskResponse
impl Sync for TaskResponse
impl Unpin for TaskResponse
impl UnwindSafe for TaskResponse
Blanket Implementations§
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de> + ?Sized,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§impl<T> DynamicType for Twhere
T: Type + ?Sized,
impl<T> DynamicType for Twhere
T: Type + ?Sized,
§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more