#[non_exhaustive]pub struct CreateRequestValidatorInput {
pub rest_api_id: Option<String>,
pub name: Option<String>,
pub validate_request_body: Option<bool>,
pub validate_request_parameters: Option<bool>,
}Expand description
Creates a RequestValidator of a given RestApi.
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.rest_api_id: Option<String>The string identifier of the associated RestApi.
name: Option<String>The name of the to-be-created RequestValidator.
validate_request_body: Option<bool>A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (true) or not (false).
validate_request_parameters: Option<bool>A Boolean flag to indicate whether to validate request parameters, true, or not false.
Implementations§
source§impl CreateRequestValidatorInput
impl CreateRequestValidatorInput
sourcepub fn rest_api_id(&self) -> Option<&str>
pub fn rest_api_id(&self) -> Option<&str>
The string identifier of the associated RestApi.
sourcepub fn validate_request_body(&self) -> Option<bool>
pub fn validate_request_body(&self) -> Option<bool>
A Boolean flag to indicate whether to validate request body according to the configured model schema for the method (true) or not (false).
sourcepub fn validate_request_parameters(&self) -> Option<bool>
pub fn validate_request_parameters(&self) -> Option<bool>
A Boolean flag to indicate whether to validate request parameters, true, or not false.
source§impl CreateRequestValidatorInput
impl CreateRequestValidatorInput
sourcepub fn builder() -> CreateRequestValidatorInputBuilder
pub fn builder() -> CreateRequestValidatorInputBuilder
Creates a new builder-style object to manufacture CreateRequestValidatorInput.
Trait Implementations§
source§impl Clone for CreateRequestValidatorInput
impl Clone for CreateRequestValidatorInput
source§fn clone(&self) -> CreateRequestValidatorInput
fn clone(&self) -> CreateRequestValidatorInput
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 CreateRequestValidatorInput
impl Debug for CreateRequestValidatorInput
source§impl PartialEq for CreateRequestValidatorInput
impl PartialEq for CreateRequestValidatorInput
source§fn eq(&self, other: &CreateRequestValidatorInput) -> bool
fn eq(&self, other: &CreateRequestValidatorInput) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateRequestValidatorInput
Auto Trait Implementations§
impl RefUnwindSafe for CreateRequestValidatorInput
impl Send for CreateRequestValidatorInput
impl Sync for CreateRequestValidatorInput
impl Unpin for CreateRequestValidatorInput
impl UnwindSafe for CreateRequestValidatorInput
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.