#[non_exhaustive]pub struct TestFunctionInput {
pub name: Option<String>,
pub if_match: Option<String>,
pub stage: Option<FunctionStage>,
pub event_object: Option<Blob>,
}
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.name: Option<String>
The name of the function that you are testing.
if_match: Option<String>
The current version (ETag
value) of the function that you are testing, which you can get using DescribeFunction
.
stage: Option<FunctionStage>
The stage of the function that you are testing, either DEVELOPMENT
or LIVE
.
event_object: Option<Blob>
The event object to test the function with. For more information about the structure of the event object, see Testing functions in the Amazon CloudFront Developer Guide.
Implementations§
source§impl TestFunctionInput
impl TestFunctionInput
sourcepub fn if_match(&self) -> Option<&str>
pub fn if_match(&self) -> Option<&str>
The current version (ETag
value) of the function that you are testing, which you can get using DescribeFunction
.
sourcepub fn stage(&self) -> Option<&FunctionStage>
pub fn stage(&self) -> Option<&FunctionStage>
The stage of the function that you are testing, either DEVELOPMENT
or LIVE
.
sourcepub fn event_object(&self) -> Option<&Blob>
pub fn event_object(&self) -> Option<&Blob>
The event object to test the function with. For more information about the structure of the event object, see Testing functions in the Amazon CloudFront Developer Guide.
source§impl TestFunctionInput
impl TestFunctionInput
sourcepub fn builder() -> TestFunctionInputBuilder
pub fn builder() -> TestFunctionInputBuilder
Creates a new builder-style object to manufacture TestFunctionInput
.
Trait Implementations§
source§impl Clone for TestFunctionInput
impl Clone for TestFunctionInput
source§fn clone(&self) -> TestFunctionInput
fn clone(&self) -> TestFunctionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestFunctionInput
impl Debug for TestFunctionInput
source§impl PartialEq for TestFunctionInput
impl PartialEq for TestFunctionInput
source§fn eq(&self, other: &TestFunctionInput) -> bool
fn eq(&self, other: &TestFunctionInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TestFunctionInput
Auto Trait Implementations§
impl Freeze for TestFunctionInput
impl RefUnwindSafe for TestFunctionInput
impl Send for TestFunctionInput
impl Sync for TestFunctionInput
impl Unpin for TestFunctionInput
impl UnwindSafe for TestFunctionInput
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