Struct security_framework::os::macos::keychain::CreateOptions
[−]
[src]
pub struct CreateOptions { /* fields omitted */ }
A builder type to create new keychains.
Methods
impl CreateOptions
[src]
fn new() -> CreateOptions
Creates a new builder with default options.
fn password(&mut self, password: &str) -> &mut CreateOptions
Sets the password to be used to protect the keychain.
fn prompt_user(&mut self, prompt_user: bool) -> &mut CreateOptions
If set, the user will be prompted to provide a password used to protect the keychain.
fn access(&mut self, access: SecAccess) -> &mut CreateOptions
Sets the access control applied to the keychain.
fn create<P: AsRef<Path>>(&self, path: P) -> Result<SecKeychain>
Creates a new keychain at the specified location on the filesystem.
Trait Implementations
impl Default for CreateOptions
[src]
fn default() -> CreateOptions
Returns the "default value" for a type. Read more