pub struct AvailabilityCheck {
pub available: bool,
pub reason: Option<String>,
}Expand description
Result of SecretStore::availability — available mirrors what
is_available returns, and reason carries the platform-specific
detail (e.g. “no Secret Service daemon”, “keychain locked”) so the
FFI surface can report an actionable message instead of a bare
boolean.
Fields§
§available: bool§reason: Option<String>Trait Implementations§
Source§impl Clone for AvailabilityCheck
impl Clone for AvailabilityCheck
Source§fn clone(&self) -> AvailabilityCheck
fn clone(&self) -> AvailabilityCheck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AvailabilityCheck
impl Debug for AvailabilityCheck
Source§impl<'de> Deserialize<'de> for AvailabilityCheck
impl<'de> Deserialize<'de> for AvailabilityCheck
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
Auto Trait Implementations§
impl Freeze for AvailabilityCheck
impl RefUnwindSafe for AvailabilityCheck
impl Send for AvailabilityCheck
impl Sync for AvailabilityCheck
impl Unpin for AvailabilityCheck
impl UnsafeUnpin for AvailabilityCheck
impl UnwindSafe for AvailabilityCheck
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