Attributes:
- file_encrypt
- encrypt Data encryption method
- decrypt Data decryption method
- The above encryption and decryption methods must be set at the same time, otherwise encryption and decryption will not be performed.
属性
- file_encrypt
- encrypt 数据加密方法
- decrypt 数据解密方法
- 以上加密和解密方法必须同时设置,否则不进行加解密。
Examples/例子
```ignore
use serde2filemacroderive::FileSerializeAndDeserialize;
[allow(dead_code)]
[derive(Serialize, Deserialize, FileSerializeAndDeserialize)]
[file_encrypt(encrypt=TestEncryptTool::encrypt,decrypt=TestEncryptTool::decrypt)]
struct TestData{
id:String,
name:String
}
```