pub struct Imported {
pub issuer: Option<String>,
pub account: Option<String>,
pub stored: Stored,
pub note: Option<String>,
}Expand description
One seed read out of somebody else’s export.
issuer and account are what the file said. They are offered to the
caller — the CLI turns them into a provider name and an account for a new
entry — and never overwrite an existing entry’s own names, for the reason in
crate::totp: renaming an entry is what every ${ref} addresses it by.
Fields§
§issuer: Option<String>§account: Option<String>§stored: Stored§note: Option<String>A note or tag the source app carried, when it had one.
Implementations§
Source§impl Imported
impl Imported
Sourcepub fn suggested_provider(&self) -> String
pub fn suggested_provider(&self) -> String
The name an entry made from this should carry.
Issuer first because that is what a user calls the service; the account
alone is usually an email address, and a vault full of entries named
me@example.com is a vault you cannot search.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Imported
impl<'de> Deserialize<'de> for Imported
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 Imported
impl StructuralPartialEq for Imported
Auto Trait Implementations§
impl Freeze for Imported
impl RefUnwindSafe for Imported
impl Send for Imported
impl Sync for Imported
impl Unpin for Imported
impl UnsafeUnpin for Imported
impl UnwindSafe for Imported
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.