pub struct FileWrite {
pub path: PathBuf,
pub before_hash: Option<String>,
pub after_hash: Option<String>,
pub merged: bool,
}Expand description
One file an operation writes.
Fields§
§path: PathBufFile path.
before_hash: Option<String>Fingerprint on disk just before the write; absent when the file did not exist.
after_hash: Option<String>Fingerprint written; absent when the write deletes the file.
merged: boolWritten through a three-way merge onto a file that had moved on.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileWrite
impl<'de> Deserialize<'de> for FileWrite
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 Eq for FileWrite
Source§impl JsonSchema for FileWrite
impl JsonSchema for FileWrite
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for FileWrite
Auto Trait Implementations§
impl Freeze for FileWrite
impl RefUnwindSafe for FileWrite
impl Send for FileWrite
impl Sync for FileWrite
impl Unpin for FileWrite
impl UnsafeUnpin for FileWrite
impl UnwindSafe for FileWrite
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