Crates.io | med_core |
lib.rs | med_core |
version | 0.6.4 |
source | src |
created_at | 2023-05-28 01:49:22.786519 |
updated_at | 2023-07-08 02:28:02.86201 |
description | A Rust Powered Core Engine for M.E.D. Masking, Encryption, and Decryption CSV/JSON |
homepage | https://github.com/jayhuang75/rust-cli-med |
repository | https://github.com/jayhuang75/rust-cli-med |
max_upload_size | |
id | 876215 |
size | 76,290 |
The core engine design for the plugin by different use case and context.
Currently its the CLI interface. If you have different programming or integration need, you can interact with the Core by is APIs.
let now = Instant::now();
let mut new_params = Params::default();
new_params.conf_path = "../demo/conf/conf_json.yaml".to_owned();
new_params.file_path = "../demo/data/input/csv".to_owned();
new_params.mode = Mode::MASK;
new_params.file_type = FileType::CSV;
let mut new_app = App::new(new_params.clone()).await.unwrap();
let metrics = new_app.process().await.unwrap();
let audit_id = new_app.update_audit(format!("{:?}", now.elapsed())).await.unwrap();