Struct aws_sdk_appsync::operation::evaluate_code::EvaluateCodeInput
source · #[non_exhaustive]pub struct EvaluateCodeInput {
pub runtime: Option<AppSyncRuntime>,
pub code: Option<String>,
pub context: Option<String>,
pub function: Option<String>,
}
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.runtime: Option<AppSyncRuntime>
The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is supported.
code: Option<String>
The code definition to be evaluated. Note that code
and runtime
are both required for this action. The runtime
value must be APPSYNC_JS
.
context: Option<String>
The map that holds all of the contextual information for your resolver invocation. A context
is required for this action.
function: Option<String>
The function within the code to be evaluated. If provided, the valid values are request
and response
.
Implementations§
source§impl EvaluateCodeInput
impl EvaluateCodeInput
sourcepub fn runtime(&self) -> Option<&AppSyncRuntime>
pub fn runtime(&self) -> Option<&AppSyncRuntime>
The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS
runtime is supported.
sourcepub fn code(&self) -> Option<&str>
pub fn code(&self) -> Option<&str>
The code definition to be evaluated. Note that code
and runtime
are both required for this action. The runtime
value must be APPSYNC_JS
.
source§impl EvaluateCodeInput
impl EvaluateCodeInput
sourcepub fn builder() -> EvaluateCodeInputBuilder
pub fn builder() -> EvaluateCodeInputBuilder
Creates a new builder-style object to manufacture EvaluateCodeInput
.
Trait Implementations§
source§impl Clone for EvaluateCodeInput
impl Clone for EvaluateCodeInput
source§fn clone(&self) -> EvaluateCodeInput
fn clone(&self) -> EvaluateCodeInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluateCodeInput
impl Debug for EvaluateCodeInput
source§impl PartialEq for EvaluateCodeInput
impl PartialEq for EvaluateCodeInput
impl StructuralPartialEq for EvaluateCodeInput
Auto Trait Implementations§
impl Freeze for EvaluateCodeInput
impl RefUnwindSafe for EvaluateCodeInput
impl Send for EvaluateCodeInput
impl Sync for EvaluateCodeInput
impl Unpin for EvaluateCodeInput
impl UnwindSafe for EvaluateCodeInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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