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
Auto Trait Implementations§
impl Freeze for CreateOptions
impl RefUnwindSafe for CreateOptions
impl Send for CreateOptions
impl Sync for CreateOptions
impl Unpin for CreateOptions
impl UnwindSafe for CreateOptions
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