pub struct Response<Req = Value, Res = Value> {
pub input: Option<Req>,
pub output: Option<Res>,
pub id: Option<String>,
pub version: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub started_at: Option<DateTime<Utc>>,
pub completed_at: Option<DateTime<Utc>>,
pub logs: String,
pub status: Status,
pub error: Option<String>,
pub metrics: Option<HashMap<String, Value>>,
}
Fields§
§input: Option<Req>
§output: Option<Res>
§id: Option<String>
§version: Option<String>
§created_at: Option<DateTime<Utc>>
§started_at: Option<DateTime<Utc>>
§completed_at: Option<DateTime<Utc>>
§logs: String
§status: Status
§error: Option<String>
§metrics: Option<HashMap<String, Value>>
Trait Implementations§
Source§impl<'de, Req, Res> Deserialize<'de> for Response<Req, Res>where
Req: Deserialize<'de>,
Res: Deserialize<'de>,
impl<'de, Req, Res> Deserialize<'de> for Response<Req, Res>where
Req: Deserialize<'de>,
Res: Deserialize<'de>,
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<Req: JsonSchema, Res: JsonSchema> JsonSchema for Response<Req, Res>
impl<Req: JsonSchema, Res: JsonSchema> JsonSchema for Response<Req, Res>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl<Req, Res> Freeze for Response<Req, Res>
impl<Req, Res> RefUnwindSafe for Response<Req, Res>where
Req: RefUnwindSafe,
Res: RefUnwindSafe,
impl<Req, Res> Send for Response<Req, Res>
impl<Req, Res> Sync for Response<Req, Res>
impl<Req, Res> Unpin for Response<Req, Res>
impl<Req, Res> UnwindSafe for Response<Req, Res>where
Req: UnwindSafe,
Res: UnwindSafe,
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