[−][src]Struct security_framework::os::macos::import_export::ImportOptions
pub struct ImportOptions<'a> { /* fields omitted */ }
A builder type to import Security Framework types from serialized formats.
Methods
impl<'a> ImportOptions<'a>
[src]
impl<'a> ImportOptions<'a>
pub fn new() -> ImportOptions<'a>
[src]
pub fn new() -> ImportOptions<'a>
Creates a new builder with default options.
pub fn filename(&mut self, filename: &str) -> &mut ImportOptions<'a>
[src]
pub fn filename(&mut self, filename: &str) -> &mut ImportOptions<'a>
Sets the filename from which the imported data came.
The extension of the file will used as a hint for parsing.
pub fn passphrase(&mut self, passphrase: &str) -> &mut ImportOptions<'a>
[src]
pub fn passphrase(&mut self, passphrase: &str) -> &mut ImportOptions<'a>
Sets the passphrase to be used to decrypt the imported data.
pub fn passphrase_bytes(&mut self, passphrase: &[u8]) -> &mut ImportOptions<'a>
[src]
pub fn passphrase_bytes(&mut self, passphrase: &[u8]) -> &mut ImportOptions<'a>
Sets the passphrase to be used to decrypt the imported data.
pub fn secure_passphrase(
&mut self,
secure_passphrase: bool
) -> &mut ImportOptions<'a>
[src]
pub fn secure_passphrase(
&mut self,
secure_passphrase: bool
) -> &mut ImportOptions<'a>
If set, the user will be prompted to imput the passphrase used to decrypt the imported data.
pub fn no_access_control(
&mut self,
no_access_control: bool
) -> &mut ImportOptions<'a>
[src]
pub fn no_access_control(
&mut self,
no_access_control: bool
) -> &mut ImportOptions<'a>
If set, imported items will have no access controls imposed on them.
pub fn alert_title(&mut self, alert_title: &str) -> &mut ImportOptions<'a>
[src]
pub fn alert_title(&mut self, alert_title: &str) -> &mut ImportOptions<'a>
Sets the title of the alert popup used with the secure_passphrase
option.
pub fn alert_prompt(&mut self, alert_prompt: &str) -> &mut ImportOptions<'a>
[src]
pub fn alert_prompt(&mut self, alert_prompt: &str) -> &mut ImportOptions<'a>
Sets the prompt of the alert popup used with the secure_passphrase
option.
pub fn items(&mut self, items: &'a mut SecItems) -> &mut ImportOptions<'a>
[src]
pub fn items(&mut self, items: &'a mut SecItems) -> &mut ImportOptions<'a>
Sets the object into which imported items will be placed.
pub fn keychain(&mut self, keychain: &SecKeychain) -> &mut ImportOptions<'a>
[src]
pub fn keychain(&mut self, keychain: &SecKeychain) -> &mut ImportOptions<'a>
Sets the keychain into which items will be imported.
This must be specified to import SecIdentity
s.
pub fn import(&mut self, data: &[u8]) -> Result<()>
[src]
pub fn import(&mut self, data: &[u8]) -> Result<()>
Imports items from serialized data.
Trait Implementations
impl<'a> Default for ImportOptions<'a>
[src]
impl<'a> Default for ImportOptions<'a>
fn default() -> ImportOptions<'a>
[src]
fn default() -> ImportOptions<'a>
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl<'a> !Send for ImportOptions<'a>
impl<'a> !Send for ImportOptions<'a>
impl<'a> !Sync for ImportOptions<'a>
impl<'a> !Sync for ImportOptions<'a>
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more