pub struct MapSpec {
pub schema: Schema,
pub rules: Vec<MapRule>,
pub transforms: Option<TransformsSpec>,
pub base_dir: Option<PathBuf>,
}Expand description
a map specification: the target schema plus the transformation rules.
Fields§
§schema: Schematarget schema; the output inventory is validated against it.
rules: Vec<MapRule>§transforms: Option<TransformsSpec>user-defined starlark transforms, consulted by ${var|name} pipelines
before the built-ins (requires the starlark feature).
base_dir: Option<PathBuf>directory of the spec file, captured by load_map_spec and used to
resolve transforms.file and starlark load() paths. None for specs
parsed from strings: a relative transforms.file then resolves against
the process cwd and load() is an error.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapSpec
impl<'de> Deserialize<'de> for MapSpec
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 MapSpec
impl RefUnwindSafe for MapSpec
impl Send for MapSpec
impl Sync for MapSpec
impl Unpin for MapSpec
impl UnsafeUnpin for MapSpec
impl UnwindSafe for MapSpec
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