pub struct KeyFile {
pub path: Utf8PathBuf,
pub bytes: Zeroizing<Vec<u8>>,
}Expand description
A validated private key file.
The bytes are what the step transmits and what the redactor holds. No consumer ever learns the path, which is why the path here serves a diagnostic and nothing else.
Fields§
§path: Utf8PathBufThe canonical path, for a diagnostic that must name the file.
bytes: Zeroizing<Vec<u8>>The file’s bytes, scrubbed when this is dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyFile
impl RefUnwindSafe for KeyFile
impl Send for KeyFile
impl Sync for KeyFile
impl Unpin for KeyFile
impl UnsafeUnpin for KeyFile
impl UnwindSafe for KeyFile
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