Struct security_framework::os::macos::keychain::CreateOptions
source · pub struct CreateOptions { /* private fields */ }Expand description
A builder type to create new keychains.
Implementations§
source§impl CreateOptions
impl CreateOptions
sourcepub fn password(&mut self, password: &str) -> &mut Self
pub fn password(&mut self, password: &str) -> &mut Self
Sets the password to be used to protect the keychain.
sourcepub fn prompt_user(&mut self, prompt_user: bool) -> &mut Self
pub fn prompt_user(&mut self, prompt_user: bool) -> &mut Self
If set, the user will be prompted to provide a password used to protect the keychain.
Trait Implementations§
source§impl Default for CreateOptions
impl Default for CreateOptions
source§fn default() -> CreateOptions
fn default() -> CreateOptions
Returns the “default value” for a type. Read more