#[non_exhaustive]pub struct CreateFunctionInput {
pub name: Option<String>,
pub function_config: Option<FunctionConfig>,
pub function_code: Option<Blob>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
A name to identify the function.
function_config: Option<FunctionConfig>
Configuration information about the function, including an optional comment and the function's runtime.
function_code: Option<Blob>
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
Implementations§
source§impl CreateFunctionInput
impl CreateFunctionInput
sourcepub fn function_config(&self) -> Option<&FunctionConfig>
pub fn function_config(&self) -> Option<&FunctionConfig>
Configuration information about the function, including an optional comment and the function's runtime.
sourcepub fn function_code(&self) -> Option<&Blob>
pub fn function_code(&self) -> Option<&Blob>
The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
source§impl CreateFunctionInput
impl CreateFunctionInput
sourcepub fn builder() -> CreateFunctionInputBuilder
pub fn builder() -> CreateFunctionInputBuilder
Creates a new builder-style object to manufacture CreateFunctionInput
.
Trait Implementations§
source§impl Clone for CreateFunctionInput
impl Clone for CreateFunctionInput
source§fn clone(&self) -> CreateFunctionInput
fn clone(&self) -> CreateFunctionInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreateFunctionInput
impl Debug for CreateFunctionInput
source§impl PartialEq for CreateFunctionInput
impl PartialEq for CreateFunctionInput
source§fn eq(&self, other: &CreateFunctionInput) -> bool
fn eq(&self, other: &CreateFunctionInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateFunctionInput
Auto Trait Implementations§
impl RefUnwindSafe for CreateFunctionInput
impl Send for CreateFunctionInput
impl Sync for CreateFunctionInput
impl Unpin for CreateFunctionInput
impl UnwindSafe for CreateFunctionInput
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
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>
Creates a shared type from an unshared type.