MTP tools & Centralizing
This commit is contained in:
parent
3e6fcec171
commit
89e939d50f
4 changed files with 36 additions and 22 deletions
10
src/mutations.rs
Normal file
10
src/mutations.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// A single file change inferred from a sandbox diff: `hash_before` absent means the file
|
||||
/// was created, `hash_after` absent means it was deleted, both present means it was modified.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct FileMutation {
|
||||
pub file: String,
|
||||
pub hash_before: Option<String>,
|
||||
pub hash_after: Option<String>,
|
||||
}
|
||||
Loading…
Reference in a new issue