pub struct DeviceAuthorizationOptionsBuilder { /* private fields */ }Implementations§
Source§impl DeviceAuthorizationOptionsBuilder
impl DeviceAuthorizationOptionsBuilder
pub fn expires_in(self, expires_in: Duration) -> Self
pub fn interval(self, interval: Duration) -> Self
pub fn device_code_length(self, length: usize) -> Self
pub fn user_code_length(self, length: usize) -> Self
pub fn generate_device_code( self, generator: Arc<dyn Fn() -> Pin<Box<dyn Future<Output = String> + Send>> + Send + Sync>, ) -> Self
pub fn generate_user_code( self, generator: Arc<dyn Fn() -> Pin<Box<dyn Future<Output = String> + Send>> + Send + Sync>, ) -> Self
pub fn validate_client( self, validator: Arc<dyn Fn(String) -> Pin<Box<dyn Future<Output = Result<bool, RustAuthError>> + Send>> + Send + Sync>, ) -> Self
pub fn on_device_auth_request( self, hook: Arc<dyn Fn(String, Option<String>) -> Pin<Box<dyn Future<Output = Result<(), RustAuthError>> + Send>> + Send + Sync>, ) -> Self
pub fn verification_uri(self, uri: impl Into<String>) -> Self
pub fn schema(self, schema: DeviceAuthorizationSchemaOptions) -> Self
pub fn build(self) -> Result<DeviceAuthorizationOptions, RustAuthError>
Trait Implementations§
Source§impl Clone for DeviceAuthorizationOptionsBuilder
impl Clone for DeviceAuthorizationOptionsBuilder
Source§fn clone(&self) -> DeviceAuthorizationOptionsBuilder
fn clone(&self) -> DeviceAuthorizationOptionsBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DeviceAuthorizationOptionsBuilder
impl Default for DeviceAuthorizationOptionsBuilder
Source§fn default() -> DeviceAuthorizationOptionsBuilder
fn default() -> DeviceAuthorizationOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DeviceAuthorizationOptionsBuilder
impl !UnwindSafe for DeviceAuthorizationOptionsBuilder
impl Freeze for DeviceAuthorizationOptionsBuilder
impl Send for DeviceAuthorizationOptionsBuilder
impl Sync for DeviceAuthorizationOptionsBuilder
impl Unpin for DeviceAuthorizationOptionsBuilder
impl UnsafeUnpin for DeviceAuthorizationOptionsBuilder
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