Struct solana_gateway::VerificationOptions
source · [−]pub struct VerificationOptions {
pub check_expiry: bool,
pub expiry_tolerance_seconds: Option<u32>,
}
Expand description
Options to configure how a gateway token is considered valid. Typically, integrators should use the default options.
Fields
check_expiry: bool
If true, consider an expired token as invalid. Defaults to true
expiry_tolerance_seconds: Option<u32>
Number of seconds to allow a token to have expired by, for it still to be counted as active. Defaults to 0. Must be set if check_expiry is true.
Trait Implementations
sourceimpl Clone for VerificationOptions
impl Clone for VerificationOptions
sourcefn clone(&self) -> VerificationOptions
fn clone(&self) -> VerificationOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VerificationOptions
impl Debug for VerificationOptions
sourceimpl Default for VerificationOptions
impl Default for VerificationOptions
sourcefn default() -> VerificationOptions
fn default() -> VerificationOptions
Returns the “default value” for a type. Read more
sourceimpl PartialEq<VerificationOptions> for VerificationOptions
impl PartialEq<VerificationOptions> for VerificationOptions
sourcefn eq(&self, other: &VerificationOptions) -> bool
fn eq(&self, other: &VerificationOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VerificationOptions) -> bool
fn ne(&self, other: &VerificationOptions) -> bool
This method tests for !=
.
impl Copy for VerificationOptions
impl StructuralPartialEq for VerificationOptions
Auto Trait Implementations
impl RefUnwindSafe for VerificationOptions
impl Send for VerificationOptions
impl Sync for VerificationOptions
impl Unpin for VerificationOptions
impl UnwindSafe for VerificationOptions
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more