Struct rusoto_appsync::CreateResolverRequest
source · [−]pub struct CreateResolverRequest {
pub api_id: String,
pub caching_config: Option<CachingConfig>,
pub data_source_name: Option<String>,
pub field_name: String,
pub kind: Option<String>,
pub pipeline_config: Option<PipelineConfig>,
pub request_mapping_template: Option<String>,
pub response_mapping_template: Option<String>,
pub sync_config: Option<SyncConfig>,
pub type_name: String,
}
Fields
api_id: String
The ID for the GraphQL API for which the resolver is being created.
caching_config: Option<CachingConfig>
The caching configuration for the resolver.
data_source_name: Option<String>
The name of the data source for which the resolver is being created.
field_name: String
The name of the field to attach the resolver to.
kind: Option<String>
The resolver type.
-
UNIT: A UNIT resolver type. A UNIT resolver is the default resolver type. A UNIT resolver enables you to execute a GraphQL query against a single data source.
-
PIPELINE: A PIPELINE resolver type. A PIPELINE resolver enables you to execute a series of
Function
in a serial manner. You can use a pipeline resolver to execute a GraphQL query against multiple data sources.
pipeline_config: Option<PipelineConfig>
The PipelineConfig
.
request_mapping_template: Option<String>
The mapping template to be used for requests.
A resolver uses a request mapping template to convert a GraphQL expression into a format that a data source can understand. Mapping templates are written in Apache Velocity Template Language (VTL).
VTL request mapping templates are optional when using a Lambda data source. For all other data sources, VTL request and response mapping templates are required.
response_mapping_template: Option<String>
The mapping template to be used for responses from the data source.
sync_config: Option<SyncConfig>
The SyncConfig
for a resolver attached to a versioned datasource.
type_name: String
The name of the Type
.
Trait Implementations
sourceimpl Clone for CreateResolverRequest
impl Clone for CreateResolverRequest
sourcefn clone(&self) -> CreateResolverRequest
fn clone(&self) -> CreateResolverRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateResolverRequest
impl Debug for CreateResolverRequest
sourceimpl Default for CreateResolverRequest
impl Default for CreateResolverRequest
sourcefn default() -> CreateResolverRequest
fn default() -> CreateResolverRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<CreateResolverRequest> for CreateResolverRequest
impl PartialEq<CreateResolverRequest> for CreateResolverRequest
sourcefn eq(&self, other: &CreateResolverRequest) -> bool
fn eq(&self, other: &CreateResolverRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateResolverRequest) -> bool
fn ne(&self, other: &CreateResolverRequest) -> bool
This method tests for !=
.
sourceimpl Serialize for CreateResolverRequest
impl Serialize for CreateResolverRequest
impl StructuralPartialEq for CreateResolverRequest
Auto Trait Implementations
impl RefUnwindSafe for CreateResolverRequest
impl Send for CreateResolverRequest
impl Sync for CreateResolverRequest
impl Unpin for CreateResolverRequest
impl UnwindSafe for CreateResolverRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more