pub struct VerifierFromConfig {
pub network: Option<NetworkName>,
pub registry_address: Option<String>,
pub rpc_url: Option<String>,
pub require_age: Option<u64>,
pub require_ofac: Option<bool>,
pub require_nationality: Option<Vec<String>>,
pub require_self_provider: Option<bool>,
pub sybil_limit: Option<u64>,
pub rate_limit: Option<RateLimitConfig>,
pub replay_protection: Option<bool>,
pub max_age_ms: Option<u64>,
pub cache_ttl_ms: Option<u64>,
}Expand description
Config object for the from_config static factory.
Fields§
§network: Option<NetworkName>§registry_address: Option<String>§rpc_url: Option<String>§require_age: Option<u64>§require_ofac: Option<bool>§require_nationality: Option<Vec<String>>§require_self_provider: Option<bool>§sybil_limit: Option<u64>§rate_limit: Option<RateLimitConfig>§replay_protection: Option<bool>§max_age_ms: Option<u64>§cache_ttl_ms: Option<u64>Trait Implementations§
Source§impl Clone for VerifierFromConfig
impl Clone for VerifierFromConfig
Source§fn clone(&self) -> VerifierFromConfig
fn clone(&self) -> VerifierFromConfig
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 VerifierFromConfig
impl Debug for VerifierFromConfig
Source§impl Default for VerifierFromConfig
impl Default for VerifierFromConfig
Source§fn default() -> VerifierFromConfig
fn default() -> VerifierFromConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VerifierFromConfig
impl RefUnwindSafe for VerifierFromConfig
impl Send for VerifierFromConfig
impl Sync for VerifierFromConfig
impl Unpin for VerifierFromConfig
impl UnsafeUnpin for VerifierFromConfig
impl UnwindSafe for VerifierFromConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more