10 lines
395 B
Rust
10 lines
395 B
Rust
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>,
|
|
}
|