pub struct Manifest {
pub version: u32,
pub files: BTreeMap<String, String>,
pub symlinks: BTreeMap<String, String>,
pub dirs: BTreeSet<String>,
}Expand description
What one sync left in the guest: every member’s identity, keyed by relative path.
Paths are /-separated on every platform, since a manifest crosses machines. Maps are
ordered so the serialized form is deterministic and a test can assert on bytes.
Fields§
§version: u32The format version, for a later reader deciding whether it understands this.
files: BTreeMap<String, String>Regular files: relative path to the sha256 of the contents, lowercase hex.
symlinks: BTreeMap<String, String>Symlinks: relative path to the link target, verbatim. Two links to different targets are different members.
dirs: BTreeSet<String>Directories, including empty ones a build script expects to exist.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Manifest
impl<'de> Deserialize<'de> for Manifest
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
impl StructuralPartialEq for Manifest
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnsafeUnpin for Manifest
impl UnwindSafe for Manifest
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