pub struct Config {
pub format: String,
pub output_name: Option<String>,
pub ignore: Option<Vec<String>>,
pub ignore_file: Option<String>,
pub resolved_ignore_file_content: Option<String>,
}Expand description
表示 ZTR 压缩工具的配置。 包含压缩格式、输出文件名、忽略规则和忽略文件路径。
Fields§
§format: String压缩格式: “zip”, “tar.gz”, “7z”
output_name: Option<String>输出文件名 (可选)
ignore: Option<Vec<String>>忽略规则列表
ignore_file: Option<String>忽略文件路径
resolved_ignore_file_content: Option<String>已经解析的忽略文件内容 (在加载配置时读取并存储)
Implementations§
Source§impl Config
impl Config
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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