pub struct PasswordOptions {
pub query: Vec<(CFString, CFType)>,
}
Expand description
PasswordOptions
constructor
Fields§
§query: Vec<(CFString, CFType)>
query built for the keychain request
Implementations§
Source§impl PasswordOptions
impl PasswordOptions
Sourcepub fn new_generic_password(service: &str, account: &str) -> Self
pub fn new_generic_password(service: &str, account: &str) -> Self
Create a new generic password options Generic passwords are identified by service and account. They have other attributes, but this interface doesn’t allow specifying them.
Sourcepub fn new_internet_password(
server: &str,
security_domain: Option<&str>,
account: &str,
path: &str,
port: Option<u16>,
protocol: SecProtocolType,
authentication_type: SecAuthenticationType,
) -> Self
pub fn new_internet_password( server: &str, security_domain: Option<&str>, account: &str, path: &str, port: Option<u16>, protocol: SecProtocolType, authentication_type: SecAuthenticationType, ) -> Self
Create a new internet password options Internet passwords are identified by a number of attributes. They can have others, but this interface doesn’t allow specifying them.
Sourcepub fn set_access_control_options(&mut self, options: AccessControlOptions)
pub fn set_access_control_options(&mut self, options: AccessControlOptions)
Add access control to the password
Auto Trait Implementations§
impl Freeze for PasswordOptions
impl RefUnwindSafe for PasswordOptions
impl !Send for PasswordOptions
impl !Sync for PasswordOptions
impl Unpin for PasswordOptions
impl UnwindSafe for PasswordOptions
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