[−][src]Struct security_framework::authorization::AuthorizationItemSetBuilder
A convenience AuthorizationItemSetBuilder
builder which enabled you to use
rust types. All names and values passed in will be copied.
Implementations
impl AuthorizationItemSetBuilder
[src]
pub fn new() -> AuthorizationItemSetBuilder
[src]
Creates a new AuthorizationItemSetStore
, which simplifies creating
owned vectors of AuthorizationItem
s.
pub fn add_right<N: Into<Vec<u8>>>(self, name: N) -> Result<Self>
[src]
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).
pub fn add_data<N, V>(self, name: N, value: V) -> Result<Self> where
N: Into<Vec<u8>>,
V: Into<Vec<u8>>,
[src]
N: Into<Vec<u8>>,
V: Into<Vec<u8>>,
Adds an AuthorizationItem with arbitrary data.
If name
isn't convertable to a CString
it will return
Err(errSecConversionError).
pub fn add_string<N, V>(self, name: N, value: V) -> Result<Self> where
N: Into<Vec<u8>>,
V: Into<Vec<u8>>,
[src]
N: Into<Vec<u8>>,
V: Into<Vec<u8>>,
Adds an AuthorizationItem with NULL terminated string data.
If name
or value
isn't convertable to a CString
it will return
Err(errSecConversionError).
pub fn build(self) -> AuthorizationItemSetStorage
[src]
Creates the sys::AuthorizationItemSet
, and gives you ownership of the
data it points to.
Trait Implementations
impl Debug for AuthorizationItemSetBuilder
[src]
impl Default for AuthorizationItemSetBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for AuthorizationItemSetBuilder
impl !Send for AuthorizationItemSetBuilder
impl !Sync for AuthorizationItemSetBuilder
impl Unpin for AuthorizationItemSetBuilder
impl UnwindSafe for AuthorizationItemSetBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,