pub struct Report {
pub key_id: [u8; 8],
pub key_imported: bool,
pub config_written: bool,
pub attributes_written: bool,
pub decrypted: Vec<PathBuf>,
pub unreadable: Vec<PathBuf>,
pub warnings: Vec<String>,
}Expand description
What unlock did.
Fields§
§key_id: [u8; 8]Fingerprint of the key the repository now holds.
key_imported: boolA key file was written. False when the key was already in place.
config_written: boolThe filter registration was written or repaired.
attributes_written: boolThe managed .gitattributes section was written or repaired.
decrypted: Vec<PathBuf>Paths, relative to the working tree, that were converted.
unreadable: Vec<PathBuf>Paths that could not be read, so may still be encrypted.
Separate from Report::warnings because the count belongs in the
closing line: “decrypted 3 files” and “decrypted 3 files, 1 could not be
read” are different outcomes and must not look the same.
warnings: Vec<String>Anything worth saying once, carried out so the binary owns the messages.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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