pub struct AuthorizationItemSetBuilder { /* private fields */ }
Expand description

A convenience AuthorizationItemSetBuilder builder which enabled you to use rust types. All names and values passed in will be copied.

Implementations§

Creates a new AuthorizationItemSetStore, which simplifies creating owned vectors of AuthorizationItems.

Adds an AuthorizationItem with the name set to a right and an empty value.

If name isn’t convertable to a CString it will return Err(errSecConversionError).

Adds an AuthorizationItem with arbitrary data.

If name isn’t convertable to a CString it will return Err(errSecConversionError).

Adds an AuthorizationItem with NULL terminated string data.

If name or value isn’t convertable to a CString it will return Err(errSecConversionError).

Creates the sys::AuthorizationItemSet, and gives you ownership of the data it points to.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

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.