pub struct LoadedKey {
pub hex: String,
pub migrated_backup: Option<PathBuf>,
}Expand description
Result of load_profile_key: the canonical hex key plus, if a
migration happened, the path to the backup of the pre-migration
profile file.
Fields§
§hex: String§migrated_backup: Option<PathBuf>Some(path) if the stored profile had a legacy base64 key
that we just rewrote in place to canonical hex; None
otherwise. Callers should display this to the user as a
migration notice.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadedKey
impl RefUnwindSafe for LoadedKey
impl Send for LoadedKey
impl Sync for LoadedKey
impl Unpin for LoadedKey
impl UnsafeUnpin for LoadedKey
impl UnwindSafe for LoadedKey
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