pub struct AuthOptions {
pub refresh_buffer_seconds: i64,
pub lock_timeout_seconds: u64,
pub login_timeout_seconds: u64,
pub callback_image_src: Option<String>,
}Expand description
Shared lifecycle configuration embedded by every provider’s binding options.
Fields§
§refresh_buffer_seconds: i64Renew credentials this many seconds before expiry; negative values are allowed.
lock_timeout_seconds: u64Maximum time spent waiting for the credential store’s refresh lock.
login_timeout_seconds: u64Maximum time allowed for a new interactive login.
callback_image_src: Option<String>Logo URL or data URI displayed by the browser callback page.
Implementations§
Source§impl AuthOptions
impl AuthOptions
Sourcepub fn refresh_buffer(&self) -> SignedDuration
pub fn refresh_buffer(&self) -> SignedDuration
Convert the cross-language refresh window to a signed Rust duration.
Sourcepub fn lock_timeout(&self) -> Duration
pub fn lock_timeout(&self) -> Duration
Convert the cross-language lock timeout to a Rust duration.
Sourcepub fn login_timeout(&self) -> Duration
pub fn login_timeout(&self) -> Duration
Convert the cross-language login timeout to a Rust duration.
Trait Implementations§
Source§impl Clone for AuthOptions
impl Clone for AuthOptions
Source§fn clone(&self) -> AuthOptions
fn clone(&self) -> AuthOptions
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<UT> ConvertError<UT> for AuthOptions
impl<UT> ConvertError<UT> for AuthOptions
Source§impl Debug for AuthOptions
impl Debug for AuthOptions
Source§impl Default for AuthOptions
impl Default for AuthOptions
Source§fn default() -> AuthOptions
fn default() -> AuthOptions
Returns the “default value” for a type. Read more
impl Eq for AuthOptions
Source§impl<UT> FfiConverter<UT> for AuthOptions
impl<UT> FfiConverter<UT> for AuthOptions
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Type ID metadata, serialized into a MetadataBuffer.
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
The low-level type used for passing values of this type over the FFI. Read more
Source§fn lower(v: AuthOptions) -> RustBuffer
fn lower(v: AuthOptions) -> RustBuffer
Lower a rust value of the target type, into an FFI value of type Self::FfiType. Read more
Source§fn try_lift(buf: RustBuffer) -> Result<AuthOptions, Error>
fn try_lift(buf: RustBuffer) -> Result<AuthOptions, Error>
Lift a rust value of the target type, from an FFI value of type Self::FfiType. Read more
Source§impl<UT> Lift<UT> for AuthOptions
impl<UT> Lift<UT> for AuthOptions
type FfiType = <AuthOptions as FfiConverter<UT>>::FfiType
fn try_lift(v: <AuthOptions as Lift<UT>>::FfiType) -> Result<AuthOptions, Error>
fn try_read(buf: &mut &[u8]) -> Result<AuthOptions, Error>
Source§fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
Convenience method
Source§impl<UT> LiftRef<UT> for AuthOptions
impl<UT> LiftRef<UT> for AuthOptions
type LiftType = AuthOptions
Source§impl<UT> LiftReturn<UT> for AuthOptions
impl<UT> LiftReturn<UT> for AuthOptions
Source§type ReturnType = <AuthOptions as Lift<UT>>::FfiType
type ReturnType = <AuthOptions as Lift<UT>>::FfiType
FFI return type for trait interfaces
Source§fn try_lift_successful_return(
v: <AuthOptions as LiftReturn<UT>>::ReturnType,
) -> Result<AuthOptions, Error>
fn try_lift_successful_return( v: <AuthOptions as LiftReturn<UT>>::ReturnType, ) -> Result<AuthOptions, Error>
Lift a successfully returned value from a trait interface
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Lift a foreign returned value from a trait interface Read more
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Lift a Rust value for a callback interface method error result Read more
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Lift a Rust value for an unexpected callback interface error Read more
Source§impl<UT> Lower<UT> for AuthOptions
impl<UT> Lower<UT> for AuthOptions
type FfiType = <AuthOptions as FfiConverter<UT>>::FfiType
fn lower(obj: AuthOptions) -> <AuthOptions as Lower<UT>>::FfiType
fn write(obj: AuthOptions, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Convenience method
Source§impl<UT> LowerError<UT> for AuthOptions
impl<UT> LowerError<UT> for AuthOptions
Source§fn lower_error(obj: AuthOptions) -> RustBuffer
fn lower_error(obj: AuthOptions) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for AuthOptions
impl<UT> LowerReturn<UT> for AuthOptions
Source§type ReturnType = <AuthOptions as Lower<UT>>::FfiType
type ReturnType = <AuthOptions as Lower<UT>>::FfiType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(
v: AuthOptions,
) -> Result<<AuthOptions as LowerReturn<UT>>::ReturnType, RustCallError>
fn lower_return( v: AuthOptions, ) -> Result<<AuthOptions as LowerReturn<UT>>::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl PartialEq for AuthOptions
impl PartialEq for AuthOptions
impl StructuralPartialEq for AuthOptions
Source§impl<UT> TypeId<UT> for AuthOptions
impl<UT> TypeId<UT> for AuthOptions
Auto Trait Implementations§
impl Freeze for AuthOptions
impl RefUnwindSafe for AuthOptions
impl Send for AuthOptions
impl Sync for AuthOptions
impl Unpin for AuthOptions
impl UnsafeUnpin for AuthOptions
impl UnwindSafe for AuthOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.