pub struct AsyncResponse {
pub model: Option<String>,
pub id: Option<String>,
pub request_id: Option<String>,
pub task_status: Option<TaskStatus>,
}Expand description
Acknowledgement returned after an asynchronous task is accepted.
Every field is optional in the upstream schema. A successful operation must
nevertheless return at least one documented non-null field; call
validate after deserializing an untrusted value.
Fields§
§model: Option<String>Model that accepted the task.
id: Option<String>Task identifier used by the async-result endpoint.
request_id: Option<String>Caller-supplied or generated request identifier.
task_status: Option<TaskStatus>Current task status, when returned at submission time.
Implementations§
Source§impl AsyncResponse
impl AsyncResponse
Trait Implementations§
Source§impl Clone for AsyncResponse
impl Clone for AsyncResponse
Source§fn clone(&self) -> AsyncResponse
fn clone(&self) -> AsyncResponse
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 AsyncResponse
impl Debug for AsyncResponse
Source§impl<'de> Deserialize<'de> for AsyncResponse
impl<'de> Deserialize<'de> for AsyncResponse
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 AsyncResponse
impl RefUnwindSafe for AsyncResponse
impl Send for AsyncResponse
impl Sync for AsyncResponse
impl Unpin for AsyncResponse
impl UnsafeUnpin for AsyncResponse
impl UnwindSafe for AsyncResponse
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