#[repr(C)]pub struct AuthorizationItem {
pub name: AuthorizationString,
pub valueLength: usize,
pub value: *mut c_void,
pub flags: u32,
}
Available on crate feature
Authorization
only.Expand description
Each AuthorizationItem describes a single string-named item with optional parameter value. The value must be contiguous memory of valueLength bytes; internal structure is defined separately for each name.
Field: name name of the item, as an AuthorizationString. Mandatory. Field: valueLength Number of bytes in parameter value. Must be 0 if no parameter value. Field: value Pointer to the optional parameter value associated with name. Must be NULL if no parameter value. Field: flags Reserved field. Must be set to 0 on creation. Do not modify after that.
See also Apple’s documentation
Fields§
§name: AuthorizationString
§valueLength: usize
§value: *mut c_void
§flags: u32
Trait Implementations§
Source§impl Clone for AuthorizationItem
impl Clone for AuthorizationItem
Source§fn clone(&self) -> AuthorizationItem
fn clone(&self) -> AuthorizationItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AuthorizationItem
impl Debug for AuthorizationItem
Source§impl Encode for AuthorizationItem
Available on crate feature objc2
only.
impl Encode for AuthorizationItem
Available on crate feature
objc2
only.Source§impl PartialEq for AuthorizationItem
impl PartialEq for AuthorizationItem
Source§impl RefEncode for AuthorizationItem
Available on crate feature objc2
only.
impl RefEncode for AuthorizationItem
Available on crate feature
objc2
only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for AuthorizationItem
impl StructuralPartialEq for AuthorizationItem
Auto Trait Implementations§
impl Freeze for AuthorizationItem
impl RefUnwindSafe for AuthorizationItem
impl !Send for AuthorizationItem
impl !Sync for AuthorizationItem
impl Unpin for AuthorizationItem
impl UnwindSafe for AuthorizationItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.