pub struct InvocationResponse {
pub executed_version: Option<String>,
pub function_error: Option<String>,
pub log_result: Option<String>,
pub payload: Option<Bytes>,
pub status_code: Option<i64>,
}
Fields§
§executed_version: Option<String>
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
function_error: Option<String>
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
log_result: Option<String>
The last 4 KB of the execution log, which is base64 encoded.
payload: Option<Bytes>
The response from the function, or an error object.
status_code: Option<i64>
The HTTP status code is in the 200 range for a successful request. For the RequestResponse
invocation type, this status code is 200. For the Event
invocation type, this status code is 202. For the DryRun
invocation type, the status code is 204.
Trait Implementations§
Source§impl Clone for InvocationResponse
impl Clone for InvocationResponse
Source§fn clone(&self) -> InvocationResponse
fn clone(&self) -> InvocationResponse
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 InvocationResponse
impl Debug for InvocationResponse
Source§impl Default for InvocationResponse
impl Default for InvocationResponse
Source§fn default() -> InvocationResponse
fn default() -> InvocationResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for InvocationResponse
impl PartialEq for InvocationResponse
impl StructuralPartialEq for InvocationResponse
Auto Trait Implementations§
impl !Freeze for InvocationResponse
impl RefUnwindSafe for InvocationResponse
impl Send for InvocationResponse
impl Sync for InvocationResponse
impl Unpin for InvocationResponse
impl UnwindSafe for InvocationResponse
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