pub struct ExtractReport {
pub root: PathBuf,
pub files: usize,
pub dirs: usize,
pub links: usize,
pub adjusted: Vec<String>,
pub skipped: Vec<SkippedEntry>,
pub metadata: RestoreReport,
}Expand description
解包结果。
Fields§
§root: PathBuf容器根目录在磁盘上的实际位置。
files: usize写出的文件数。
dirs: usize创建的目录数。
links: usize成功创建的符号链接数。
adjusted: Vec<String>因平台限制被改名的条目(原路径)。
必须报告:文件名被悄悄改掉的话,用户按原名找不到文件, 只会以为解包漏了东西(决策 N3,文档 05 §4.3)。
skipped: Vec<SkippedEntry>未能还原的条目。
metadata: RestoreReport元数据还原报告。
Trait Implementations§
Auto Trait Implementations§
impl Forget for ExtractReport
impl Freeze for ExtractReport
impl RefUnwindSafe for ExtractReport
impl Send for ExtractReport
impl Sync for ExtractReport
impl Unpin for ExtractReport
impl UnsafeUnpin for ExtractReport
impl UnwindSafe for ExtractReport
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