pub struct PasswordOptions {
pub query: Vec<(CFString, CFType)>,
}
Expand description
PasswordOptions
constructor
Fields§
§query: Vec<(CFString, CFType)>
👎Deprecated: This field should have been private. Please use setters that don’t expose 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
Sourcepub fn set_access_control(&mut self, access_control: SecAccessControl)
pub fn set_access_control(&mut self, access_control: SecAccessControl)
Add access control to the password
Sourcepub fn set_access_group(&mut self, group: &str)
pub fn set_access_group(&mut self, group: &str)
Add access group 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