pub enum CredentialQuery {
Domain(String),
Id(String),
Search(String),
}Expand description
What kind of credential to look up.
Variants§
Domain(String)
Look up by domain / URL.
Id(String)
Look up by vault item ID.
Search(String)
Free-text search.
Implementations§
Source§impl CredentialQuery
impl CredentialQuery
Sourcepub fn search_string(&self) -> &str
pub fn search_string(&self) -> &str
Extract the inner search string from any query variant.
Trait Implementations§
Source§impl Clone for CredentialQuery
impl Clone for CredentialQuery
Source§fn clone(&self) -> CredentialQuery
fn clone(&self) -> CredentialQuery
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 moreSource§impl Debug for CredentialQuery
impl Debug for CredentialQuery
Source§impl<'de> Deserialize<'de> for CredentialQuery
impl<'de> Deserialize<'de> for CredentialQuery
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
Source§impl Display for CredentialQuery
impl Display for CredentialQuery
Auto Trait Implementations§
impl Freeze for CredentialQuery
impl RefUnwindSafe for CredentialQuery
impl Send for CredentialQuery
impl Sync for CredentialQuery
impl Unpin for CredentialQuery
impl UnsafeUnpin for CredentialQuery
impl UnwindSafe for CredentialQuery
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