pub struct NewItem {Show 16 fields
pub label: Option<String>,
pub account: Option<String>,
pub service: Option<String>,
pub generic: Option<Vec<u8>>,
pub server: Option<String>,
pub security_domain: Option<String>,
pub path: Option<String>,
pub port: Option<u32>,
pub protocol: Option<[u8; 4]>,
pub auth_type: Option<[u8; 4]>,
pub volume: Option<String>,
pub address: Option<String>,
pub signature: Option<String>,
pub description: Option<String>,
pub comment: Option<String>,
pub trusted_applications: Vec<TrustedApplication>,
}Expand description
What to store for a new password item.
Fields§
§label: Option<String>PrintName: the name Keychain Access shows. Defaults to the service or
server when not set.
account: Option<String>acct
service: Option<String>svce, generic items only.
generic: Option<Vec<u8>>gena, generic items only: application-defined bytes.
server: Option<String>srvr, internet and AppleShare items.
security_domain: Option<String>sdmn, internet items only: the authentication realm.
path: Option<String>path, internet items only.
port: Option<u32>port, internet items only.
protocol: Option<[u8; 4]>ptcl, internet and AppleShare items: a four-char code such as http.
auth_type: Option<[u8; 4]>atyp, internet items only: a four-char code such as dflt.
volume: Option<String>vlme, AppleShare items only.
address: Option<String>addr, AppleShare items only.
signature: Option<String>ssig, AppleShare items only.
description: Option<String>desc: the “kind” shown in Keychain Access.
comment: Option<String>icmt: free-text comment.
trusted_applications: Vec<TrustedApplication>Applications allowed to decrypt the item. Empty means any application,
which is what security add-generic-password -A stores.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewItem
impl RefUnwindSafe for NewItem
impl Send for NewItem
impl Sync for NewItem
impl Unpin for NewItem
impl UnsafeUnpin for NewItem
impl UnwindSafe for NewItem
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