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