Struct aws_sdk_cloudfront::output::test_function_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for TestFunctionOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn test_result(self, input: TestResult) -> Self
pub fn test_result(self, input: TestResult) -> Self
An object that represents the result of running the function with the provided event object.
sourcepub fn set_test_result(self, input: Option<TestResult>) -> Self
pub fn set_test_result(self, input: Option<TestResult>) -> Self
An object that represents the result of running the function with the provided event object.
Examples found in repository?
src/operation_deser.rs (lines 10419-10423)
10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426
pub fn parse_test_function_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::TestFunctionOutput, crate::error::TestFunctionError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::test_function_output::Builder::default();
let _ = response;
output = output.set_test_result(
crate::http_serde::deser_payload_test_function_test_function_output_test_result(
response.body().as_ref(),
)?,
);
output.build()
})
}
sourcepub fn build(self) -> TestFunctionOutput
pub fn build(self) -> TestFunctionOutput
Consumes the builder and constructs a TestFunctionOutput
.
Examples found in repository?
src/operation_deser.rs (line 10424)
10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426
pub fn parse_test_function_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::TestFunctionOutput, crate::error::TestFunctionError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::test_function_output::Builder::default();
let _ = response;
output = output.set_test_result(
crate::http_serde::deser_payload_test_function_test_function_output_test_result(
response.body().as_ref(),
)?,
);
output.build()
})
}