pub struct InvokeResponse { /* private fields */ }Expand description
Result from Lambda
Implementations§
Source§impl InvokeResponse
impl InvokeResponse
Sourcepub fn status_code(&self) -> i32
pub fn status_code(&self) -> i32
Get the status code of the response
Sourcepub fn take_payload(&mut self) -> Option<Vec<u8>>
pub fn take_payload(&mut self) -> Option<Vec<u8>>
Take the payload of the response
This consumes the payload; if you call it again, it will return None.
Auto Trait Implementations§
impl Freeze for InvokeResponse
impl RefUnwindSafe for InvokeResponse
impl Send for InvokeResponse
impl Sync for InvokeResponse
impl Unpin for InvokeResponse
impl UnwindSafe for InvokeResponse
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