Struct aws_sdk_lambda::operation::invoke_with_response_stream::InvokeWithResponseStreamOutput
source · #[non_exhaustive]pub struct InvokeWithResponseStreamOutput {
pub status_code: i32,
pub executed_version: Option<String>,
pub event_stream: EventReceiver<InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamResponseEventError>,
pub response_stream_content_type: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.status_code: i32
For a successful request, the HTTP status code is in the 200 range. For the RequestResponse
invocation type, this status code is 200. For the DryRun
invocation type, this status code is 204.
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.
event_stream: EventReceiver<InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamResponseEventError>
The stream of response payloads.
response_stream_content_type: Option<String>
The type of data the stream is returning.
Implementations§
source§impl InvokeWithResponseStreamOutput
impl InvokeWithResponseStreamOutput
sourcepub fn status_code(&self) -> i32
pub fn status_code(&self) -> i32
For a successful request, the HTTP status code is in the 200 range. For the RequestResponse
invocation type, this status code is 200. For the DryRun
invocation type, this status code is 204.
sourcepub fn executed_version(&self) -> Option<&str>
pub fn executed_version(&self) -> Option<&str>
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
sourcepub fn event_stream(
&self
) -> &EventReceiver<InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamResponseEventError>
pub fn event_stream( &self ) -> &EventReceiver<InvokeWithResponseStreamResponseEvent, InvokeWithResponseStreamResponseEventError>
The stream of response payloads.
sourcepub fn response_stream_content_type(&self) -> Option<&str>
pub fn response_stream_content_type(&self) -> Option<&str>
The type of data the stream is returning.
source§impl InvokeWithResponseStreamOutput
impl InvokeWithResponseStreamOutput
sourcepub fn builder() -> InvokeWithResponseStreamOutputBuilder
pub fn builder() -> InvokeWithResponseStreamOutputBuilder
Creates a new builder-style object to manufacture InvokeWithResponseStreamOutput
.
Trait Implementations§
source§impl RequestId for InvokeWithResponseStreamOutput
impl RequestId for InvokeWithResponseStreamOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.