pub struct InvocationPayload(/* private fields */);Expand description
The raw invocation payload lambda_runtime hands to the service
functions wrap produces.
Opaque by design: the payload is the durable invocation envelope the
service sends, and its JSON representation is an implementation detail
between the runtime and the SDK. Callers never construct or inspect
one: lambda_runtime::service_fn deserializes it, and the service
function consumes it. Keeping the inner value private is what keeps
serde_json out of the crate’s public API.
Trait Implementations§
Source§impl Debug for InvocationPayload
impl Debug for InvocationPayload
Source§impl<'de> Deserialize<'de> for InvocationPayload
impl<'de> Deserialize<'de> for InvocationPayload
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
Auto Trait Implementations§
impl Forget for InvocationPayload
impl Freeze for InvocationPayload
impl Move for InvocationPayload
impl RefUnwindSafe for InvocationPayload
impl Send for InvocationPayload
impl Sync for InvocationPayload
impl Unpin for InvocationPayload
impl UnsafeUnpin for InvocationPayload
impl UnwindSafe for InvocationPayload
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.