#[non_exhaustive]pub enum Reference {
Identity(SecIdentity),
Certificate(SecCertificate),
Key(SecKey),
KeychainItem(SecKeychainItem),
}Expand description
An enum including all objects whose references can be returned from a search.
Note that generic Keychain Items, such as passwords and preferences, do
not have specific object types; they are modeled using dictionaries and so
are available directly as search results in variant SearchResult::Dict.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Identity(SecIdentity)
A SecIdentity.
Certificate(SecCertificate)
A SecCertificate.
Key(SecKey)
A SecKey.
KeychainItem(SecKeychainItem)
A SecKeychainItem.
Only defined on OSX
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnwindSafe for Reference
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