pub struct SuotarConfiguration {
pub api_base_url: Url,
pub api_token: SecretString,
pub fast_track_email_match_enabled: bool,
pub fast_track_max_email_verification_age_days: i64,
}Fields§
§api_base_url: UrlEnds in / because it is a Url::join base and joined paths must be relative.
api_token: SecretString§fast_track_email_match_enabled: boolNothing reads it yet.
fast_track_max_email_verification_age_days: i64Nothing reads it yet.
Implementations§
Source§impl SuotarConfiguration
impl SuotarConfiguration
Sourcepub fn mock_conf(base_url: &str) -> Result<Self>
pub fn mock_conf(base_url: &str) -> Result<Self>
Points the client at our own mock controller. Only reachable with TEST_MODE and
USE_MOCK_SUOTAR_ENDPOINT both on.
pub fn try_from_env() -> Result<Self>
fn fast_track_enabled_from_env() -> bool
fn fast_track_max_age_from_env() -> i64
Trait Implementations§
Source§impl Clone for SuotarConfiguration
impl Clone for SuotarConfiguration
Source§fn clone(&self) -> SuotarConfiguration
fn clone(&self) -> SuotarConfiguration
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 moreAuto Trait Implementations§
impl Freeze for SuotarConfiguration
impl RefUnwindSafe for SuotarConfiguration
impl Send for SuotarConfiguration
impl Sync for SuotarConfiguration
impl Unpin for SuotarConfiguration
impl UnsafeUnpin for SuotarConfiguration
impl UnwindSafe for SuotarConfiguration
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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