Struct aws_sdk_cloudfront::types::TestResult
source · #[non_exhaustive]pub struct TestResult {
pub function_summary: Option<FunctionSummary>,
pub compute_utilization: Option<String>,
pub function_execution_logs: Option<Vec<String>>,
pub function_error_message: Option<String>,
pub function_output: Option<String>,
}
Expand description
Contains the result of testing a CloudFront function with TestFunction
.
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.function_summary: Option<FunctionSummary>
Contains configuration information and metadata about the CloudFront function that was tested.
compute_utilization: Option<String>
The amount of time that the function took to run as a percentage of the maximum allowed time. For example, a compute utilization of 35 means that the function completed in 35% of the maximum allowed time.
function_execution_logs: Option<Vec<String>>
Contains the log lines that the function wrote (if any) when running the test.
function_error_message: Option<String>
If the result of testing the function was an error, this field contains the error message.
function_output: Option<String>
The event object returned by the function. For more information about the structure of the event object, see Event object structure in the Amazon CloudFront Developer Guide.
Implementations§
source§impl TestResult
impl TestResult
sourcepub fn function_summary(&self) -> Option<&FunctionSummary>
pub fn function_summary(&self) -> Option<&FunctionSummary>
Contains configuration information and metadata about the CloudFront function that was tested.
sourcepub fn compute_utilization(&self) -> Option<&str>
pub fn compute_utilization(&self) -> Option<&str>
The amount of time that the function took to run as a percentage of the maximum allowed time. For example, a compute utilization of 35 means that the function completed in 35% of the maximum allowed time.
sourcepub fn function_execution_logs(&self) -> &[String]
pub fn function_execution_logs(&self) -> &[String]
Contains the log lines that the function wrote (if any) when running the test.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .function_execution_logs.is_none()
.
sourcepub fn function_error_message(&self) -> Option<&str>
pub fn function_error_message(&self) -> Option<&str>
If the result of testing the function was an error, this field contains the error message.
sourcepub fn function_output(&self) -> Option<&str>
pub fn function_output(&self) -> Option<&str>
The event object returned by the function. For more information about the structure of the event object, see Event object structure in the Amazon CloudFront Developer Guide.
source§impl TestResult
impl TestResult
sourcepub fn builder() -> TestResultBuilder
pub fn builder() -> TestResultBuilder
Creates a new builder-style object to manufacture TestResult
.
Trait Implementations§
source§impl Clone for TestResult
impl Clone for TestResult
source§fn clone(&self) -> TestResult
fn clone(&self) -> TestResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestResult
impl Debug for TestResult
source§impl PartialEq for TestResult
impl PartialEq for TestResult
source§fn eq(&self, other: &TestResult) -> bool
fn eq(&self, other: &TestResult) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TestResult
Auto Trait Implementations§
impl Freeze for TestResult
impl RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin for TestResult
impl UnwindSafe for TestResult
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
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>
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>
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 more