pub enum KeyLocation {
OsKeychain {
service: String,
account: String,
},
SystemKeychain {
service: String,
account: String,
},
SystemFile(PathBuf),
UserFile(PathBuf),
}Expand description
Describes where a key was saved.
Variants§
OsKeychain
Saved to the user-level OS keychain.
Fields
SystemKeychain
Saved to the macOS System Keychain.
Fields
SystemFile(PathBuf)
Saved to a system-level protected file (Linux/Windows).
UserFile(PathBuf)
Saved to a user-level key file.
Trait Implementations§
Source§impl Clone for KeyLocation
impl Clone for KeyLocation
Source§fn clone(&self) -> KeyLocation
fn clone(&self) -> KeyLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeyLocation
impl RefUnwindSafe for KeyLocation
impl Send for KeyLocation
impl Sync for KeyLocation
impl Unpin for KeyLocation
impl UnsafeUnpin for KeyLocation
impl UnwindSafe for KeyLocation
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