pub struct SecurityCapabilities {
pub binary_signed: bool,
pub backend: BackendKind,
pub effective_keychain_group: Option<String>,
pub code_signature_binding: bool,
pub keychain_user_presence: bool,
pub hardware_presence: bool,
pub presence_caching: bool,
pub effective_app_name: String,
pub downgraded_features: Vec<String>,
pub recommended_access_policy: AccessPolicy,
}Expand description
Full description of the security tier available to the current binary on the current platform.
Fields§
§binary_signed: boolBinary is code-signed. When false, app_name has -unsigned appended.
backend: BackendKindHardware security backend detected.
effective_keychain_group: Option<String>Effective keychain access group, if any.
code_signature_binding: boolKeychain items are bound to this binary’s code signature.
keychain_user_presence: boolUser-presence gates the keychain wrapping key.
hardware_presence: boolPlatform can enforce user-presence at hardware/OS level.
presence_caching: boolPresence prompts can be cached across operations within a TTL.
effective_app_name: StringEffective app_name after -unsigned suffix applied (if applicable).
downgraded_features: Vec<String>Features requested that were silently downgraded.
recommended_access_policy: AccessPolicyRecommended AccessPolicy for new keys given the current security tier.
Trait Implementations§
Source§impl Clone for SecurityCapabilities
impl Clone for SecurityCapabilities
Source§fn clone(&self) -> SecurityCapabilities
fn clone(&self) -> SecurityCapabilities
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 moreAuto Trait Implementations§
impl Freeze for SecurityCapabilities
impl RefUnwindSafe for SecurityCapabilities
impl Send for SecurityCapabilities
impl Sync for SecurityCapabilities
impl Unpin for SecurityCapabilities
impl UnsafeUnpin for SecurityCapabilities
impl UnwindSafe for SecurityCapabilities
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