pub struct InferenceCreateAsyncInvokeResponse {
pub completed_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub error: Option<String>,
pub model_id: String,
pub output: Option<Map<String, Value>>,
pub request_id: String,
pub started_at: Option<DateTime<Utc>>,
pub status: InferenceCreateAsyncInvokeResponseStatus,
}Expand description
Response returned when an asynchronous invocation request is accepted. The job status is QUEUED initially. Use the request_id to poll for the result.
JSON schema
{
"description": "Response returned when an asynchronous invocation request is accepted. The job status is QUEUED initially. Use the request_id to poll for the result.\n",
"type": "object",
"required": [
"created_at",
"model_id",
"request_id",
"status"
],
"properties": {
"completed_at": {
"description": "The timestamp when the job completed. Null until finished.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"created_at": {
"description": "The timestamp when the request was created.",
"examples": [
"2026-01-22T19:19:19.112403432Z"
],
"type": "string",
"format": "date-time"
},
"error": {
"description": "Error message if the job failed. Null on success.",
"type": [
"string",
"null"
]
},
"model_id": {
"description": "The model ID that was invoked.",
"examples": [
"fal-ai/fast-sdxl"
],
"type": "string"
},
"output": {
"description": "The output of the invocation. Null while the job is queued or in progress. Contains the result once completed.\n",
"type": [
"object",
"null"
],
"additionalProperties": true
},
"request_id": {
"description": "A unique identifier for the async invocation request. Use this ID to check the status and retrieve the result.\n",
"examples": [
"6590784a-ce47-4556-9ff4-53baff2693fb"
],
"type": "string"
},
"started_at": {
"description": "The timestamp when the job started processing. Null while queued.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"status": {
"description": "The current status of the async invocation.",
"examples": [
"QUEUED"
],
"type": "string",
"enum": [
"QUEUED",
"IN_PROGRESS",
"COMPLETED",
"FAILED"
]
}
}
}Fields§
§completed_at: Option<DateTime<Utc>>The timestamp when the job completed. Null until finished.
created_at: DateTime<Utc>The timestamp when the request was created.
error: Option<String>Error message if the job failed. Null on success.
model_id: StringThe model ID that was invoked.
output: Option<Map<String, Value>>The output of the invocation. Null while the job is queued or in progress. Contains the result once completed.
request_id: StringA unique identifier for the async invocation request. Use this ID to check the status and retrieve the result.
started_at: Option<DateTime<Utc>>The timestamp when the job started processing. Null while queued.
status: InferenceCreateAsyncInvokeResponseStatusThe current status of the async invocation.
Trait Implementations§
Source§impl Clone for InferenceCreateAsyncInvokeResponse
impl Clone for InferenceCreateAsyncInvokeResponse
Source§fn clone(&self) -> InferenceCreateAsyncInvokeResponse
fn clone(&self) -> InferenceCreateAsyncInvokeResponse
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<'de> Deserialize<'de> for InferenceCreateAsyncInvokeResponse
impl<'de> Deserialize<'de> for InferenceCreateAsyncInvokeResponse
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<&InferenceCreateAsyncInvokeResponse> for InferenceCreateAsyncInvokeResponse
impl From<&InferenceCreateAsyncInvokeResponse> for InferenceCreateAsyncInvokeResponse
Source§fn from(value: &InferenceCreateAsyncInvokeResponse) -> Self
fn from(value: &InferenceCreateAsyncInvokeResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InferenceCreateAsyncInvokeResponse
impl RefUnwindSafe for InferenceCreateAsyncInvokeResponse
impl Send for InferenceCreateAsyncInvokeResponse
impl Sync for InferenceCreateAsyncInvokeResponse
impl Unpin for InferenceCreateAsyncInvokeResponse
impl UnsafeUnpin for InferenceCreateAsyncInvokeResponse
impl UnwindSafe for InferenceCreateAsyncInvokeResponse
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