#[non_exhaustive]pub struct LoopsConfig {
pub api_key: Option<String>,
pub base_url: String,
pub safe_mode: bool,
pub safe_mode_allowed_domains: Vec<String>,
}Expand description
The process-wide defaults LoopsClient falls back to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.api_key: Option<String>API key from configure, else the LOOPS_API_KEY environment variable.
base_url: StringBase URL of the Loops API.
safe_mode: boolWhen true, only addresses ending in one of
safe_mode_allowed_domains are accepted.
safe_mode_allowed_domains: Vec<String>Domains allowed in safe mode, each starting with @ (e.g. "@test.com").
Trait Implementations§
Source§impl Clone for LoopsConfig
impl Clone for LoopsConfig
Source§impl Debug for LoopsConfig
impl Debug for LoopsConfig
impl Eq for LoopsConfig
Source§impl PartialEq for LoopsConfig
impl PartialEq for LoopsConfig
impl StructuralPartialEq for LoopsConfig
Auto Trait Implementations§
impl Freeze for LoopsConfig
impl RefUnwindSafe for LoopsConfig
impl Send for LoopsConfig
impl Sync for LoopsConfig
impl Unpin for LoopsConfig
impl UnsafeUnpin for LoopsConfig
impl UnwindSafe for LoopsConfig
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<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.