pub struct ItemAddOptions {
    pub value: ItemAddValue,
    pub label: Option<String>,
    pub location: Option<Location>,
}
Expand description

Builder-pattern struct for specifying options for add_item (SecAddItem wrapper).

When finished populating options, call to_dictionary() and pass the resulting CFDictionary to add_item.

Fields§

§value: ItemAddValue

The value (by ref or data) of the item to add, required.

§label: Option<String>

Optional kSecAttrLabel attribute.

§location: Option<Location>

Optional keychain location.

Implementations§

Specifies the item to add.

Specifies the kSecAttrLabel attribute.

Specifies which keychain to add the item to.

Populates a CFDictionary to be passed to

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.