pub struct AppleIDRequest<'a> { /* private fields */ }Expand description
The ASAuthorizationAppleIDRequest the onRequest callback is handed.
A borrowed Objective-C object: configure it and return. The one thing worth
configuring is what to ask for, which is why that is the method here; raw
is for anything else, reachable through crate::objc.
Implementations§
Source§impl AppleIDRequest<'_>
impl AppleIDRequest<'_>
Sourcepub fn request_full_name_and_email(&self)
pub fn request_full_name_and_email(&self)
request.requestedScopes = [.fullName, .email].
The two scopes Sign in with Apple offers. Set through the Objective-C
runtime because ASAuthorizationScope is a string constant in the
framework’s headers, not a Swift enum with a getter.
Sourcepub fn raw(&self) -> *mut c_void
pub fn raw(&self) -> *mut c_void
The object itself, for anything request_full_name_and_email does not
cover.
Auto Trait Implementations§
impl<'a> !Send for AppleIDRequest<'a>
impl<'a> !Sync for AppleIDRequest<'a>
impl<'a> Freeze for AppleIDRequest<'a>
impl<'a> RefUnwindSafe for AppleIDRequest<'a>
impl<'a> Unpin for AppleIDRequest<'a>
impl<'a> UnsafeUnpin for AppleIDRequest<'a>
impl<'a> UnwindSafe for AppleIDRequest<'a>
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