pub struct SchemaValidatorConfig {
pub additional_schemas: Vec<AdditionalSchemaSource>,
}Expand description
Configuration for constructing a SchemaValidator with optional overlay
schemas. Bindings and the CLI use this to build the validator separately from
the rule engine.
Fields§
§additional_schemas: Vec<AdditionalSchemaSource>Additional CloudFormation resource provider schemas to merge on top of the bundled schemas before schema validation.
Implementations§
Source§impl SchemaValidatorConfig
impl SchemaValidatorConfig
Sourcepub fn with_additional_schemas(
self,
schemas: impl IntoIterator<Item = AdditionalSchemaSource>,
) -> Self
pub fn with_additional_schemas( self, schemas: impl IntoIterator<Item = AdditionalSchemaSource>, ) -> Self
Adds resource provider schemas to overlay on the bundled ones.
Trait Implementations§
Source§impl Clone for SchemaValidatorConfig
impl Clone for SchemaValidatorConfig
Source§fn clone(&self) -> SchemaValidatorConfig
fn clone(&self) -> SchemaValidatorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SchemaValidatorConfig
impl Default for SchemaValidatorConfig
Source§fn default() -> SchemaValidatorConfig
fn default() -> SchemaValidatorConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaValidatorConfig
impl<'de> Deserialize<'de> for SchemaValidatorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SchemaValidatorConfig
impl RefUnwindSafe for SchemaValidatorConfig
impl Send for SchemaValidatorConfig
impl Sync for SchemaValidatorConfig
impl Unpin for SchemaValidatorConfig
impl UnsafeUnpin for SchemaValidatorConfig
impl UnwindSafe for SchemaValidatorConfig
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