pub struct CreateFunctionRequest {
pub api_id: String,
pub data_source_name: String,
pub description: Option<String>,
pub function_version: String,
pub name: String,
pub request_mapping_template: Option<String>,
pub response_mapping_template: Option<String>,
pub sync_config: Option<SyncConfig>,
}
Fields§
§api_id: String
The GraphQL API ID.
data_source_name: String
The Function
DataSource
name.
description: Option<String>
The Function
description.
function_version: String
The version
of the request mapping template. Currently the supported value is 2018-05-29.
name: String
The Function
name. The function name does not have to be unique.
request_mapping_template: Option<String>
The Function
request mapping template. Functions support only the 2018-05-29 version of the request mapping template.
response_mapping_template: Option<String>
The Function
response mapping template.
sync_config: Option<SyncConfig>
Trait Implementations§
Source§impl Clone for CreateFunctionRequest
impl Clone for CreateFunctionRequest
Source§fn clone(&self) -> CreateFunctionRequest
fn clone(&self) -> CreateFunctionRequest
Returns a duplicate 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 CreateFunctionRequest
impl Debug for CreateFunctionRequest
Source§impl Default for CreateFunctionRequest
impl Default for CreateFunctionRequest
Source§fn default() -> CreateFunctionRequest
fn default() -> CreateFunctionRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateFunctionRequest
impl PartialEq for CreateFunctionRequest
Source§impl Serialize for CreateFunctionRequest
impl Serialize for CreateFunctionRequest
impl StructuralPartialEq for CreateFunctionRequest
Auto Trait Implementations§
impl Freeze for CreateFunctionRequest
impl RefUnwindSafe for CreateFunctionRequest
impl Send for CreateFunctionRequest
impl Sync for CreateFunctionRequest
impl Unpin for CreateFunctionRequest
impl UnwindSafe for CreateFunctionRequest
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