pub struct MaskFile {
pub tables: BTreeMap<String, BTreeMap<String, Strategy>>,
pub subset: BTreeMap<String, SubsetRule>,
}Expand description
A parsed masking file. Table keys are table (schema public) or schema.table.
Fields§
§tables: BTreeMap<String, BTreeMap<String, Strategy>>§subset: BTreeMap<String, SubsetRule>Implementations§
Source§impl MaskFile
impl MaskFile
Sourcepub fn parse(text: &str) -> Result<MaskFile>
pub fn parse(text: &str) -> Result<MaskFile>
Parses masking-file TOML. Errors name the line (syntax) or the key (meaning).
Sourcepub fn load(path: &Path) -> Result<MaskFile>
pub fn load(path: &Path) -> Result<MaskFile>
Reads and parses the masking file at path; errors name the file.
Trait Implementations§
impl StructuralPartialEq for MaskFile
Auto Trait Implementations§
impl Freeze for MaskFile
impl RefUnwindSafe for MaskFile
impl Send for MaskFile
impl Sync for MaskFile
impl Unpin for MaskFile
impl UnsafeUnpin for MaskFile
impl UnwindSafe for MaskFile
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