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 new() -> SchemaValidatorConfig
pub fn new() -> SchemaValidatorConfig
Starts from the default configuration (no overlays).
Sourcepub fn with_additional_schemas(
self,
schemas: impl IntoIterator<Item = AdditionalSchemaSource>,
) -> SchemaValidatorConfig
pub fn with_additional_schemas( self, schemas: impl IntoIterator<Item = AdditionalSchemaSource>, ) -> SchemaValidatorConfig
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<SchemaValidatorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchemaValidatorConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SchemaValidatorConfig
impl Serialize for SchemaValidatorConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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