Struct security_framework::os::macos::keychain::CreateOptions [−][src]
pub struct CreateOptions { /* fields omitted */ }
Expand description
A builder type to create new keychains.
Implementations
impl CreateOptions
[src]
impl CreateOptions
[src]pub fn new() -> CreateOptions
[src]
pub fn new() -> CreateOptions
[src]Creates a new builder with default options.
pub fn password(&mut self, password: &str) -> &mut CreateOptions
[src]
pub fn password(&mut self, password: &str) -> &mut CreateOptions
[src]Sets the password to be used to protect the keychain.
pub fn prompt_user(&mut self, prompt_user: bool) -> &mut CreateOptions
[src]
pub fn prompt_user(&mut self, prompt_user: bool) -> &mut CreateOptions
[src]If set, the user will be prompted to provide a password used to protect the keychain.
pub fn access(&mut self, access: SecAccess) -> &mut CreateOptions
[src]
pub fn access(&mut self, access: SecAccess) -> &mut CreateOptions
[src]Sets the access control applied to the keychain.
Trait Implementations
impl Default for CreateOptions
[src]
impl Default for CreateOptions
[src]fn default() -> CreateOptions
[src]
fn default() -> CreateOptions
[src]Returns the “default value” for a type. Read more