pub struct IntegrationErrorExpressionContext {
pub status: i64,
pub headers: BTreeMap<String, String>,
pub data: Value,
pub response: Option<Map<String, Value>>,
}Expand description
Input passed to every error_expression JSONata expression.
Fields§
§status: i64HTTP status code of the upstream response.
headers: BTreeMap<String, String>Lower-cased response headers from the upstream call.
data: ValueParsed response body. If the body is a plain object with a top-level data field, that field is used directly; otherwise the whole parsed body is provided.
response: Option<Map<String, Value>>Raw Fetch Response object. Prefer headers, status, and data; this is exposed for advanced inspection only.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IntegrationErrorExpressionContext
impl<'de> Deserialize<'de> for IntegrationErrorExpressionContext
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
impl StructuralPartialEq for IntegrationErrorExpressionContext
Auto Trait Implementations§
impl Freeze for IntegrationErrorExpressionContext
impl RefUnwindSafe for IntegrationErrorExpressionContext
impl Send for IntegrationErrorExpressionContext
impl Sync for IntegrationErrorExpressionContext
impl Unpin for IntegrationErrorExpressionContext
impl UnsafeUnpin for IntegrationErrorExpressionContext
impl UnwindSafe for IntegrationErrorExpressionContext
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