obsidian-backups 0.1.3

A Git-based backup library for Rust applications. Originally designed for the Obsidian Minecraft Server Panel, but generic enough to be used in any project requiring file backup management.
Documentation
1
2
3
4
5
6
7
8
9
10
#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct ModifiedFile {
	/// The path of the modified file.
	pub path: String,
	/// The content of the file before modification (if available).
	pub content_before: Option<Vec<u8>>,
	/// The content of the file after modification (if available).
	pub content_after: Option<Vec<u8>>,
}