#[non_exhaustive]pub struct ConfigureOptions {
pub api_key: Option<String>,
pub base_url: Option<String>,
pub safe_mode: Option<bool>,
pub safe_mode_allowed_domains: Option<Vec<String>>,
}Expand description
The settings to change in a configure call. Unset fields keep their
current value.
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>Loops API key.
base_url: Option<String>Base URL of the Loops API (default DEFAULT_BASE_URL).
safe_mode: Option<bool>Turn safe mode on or off.
safe_mode_allowed_domains: Option<Vec<String>>Domains allowed in safe mode, each starting with @.
Implementations§
Source§impl ConfigureOptions
impl ConfigureOptions
Sourcepub fn base_url(self, base_url: impl Into<String>) -> Self
pub fn base_url(self, base_url: impl Into<String>) -> Self
Set the base URL. Do not include the /v1 version segment; a trailing
/v1 is stripped.
Sourcepub fn safe_mode(self, safe_mode: bool) -> Self
pub fn safe_mode(self, safe_mode: bool) -> Self
Turn safe mode on or off. Useful in local development to avoid emailing real users by accident.
Sourcepub fn safe_mode_allowed_domains<I, S>(self, domains: I) -> Self
pub fn safe_mode_allowed_domains<I, S>(self, domains: I) -> Self
Set the domains allowed in safe mode, each starting with @.
Trait Implementations§
Source§impl Clone for ConfigureOptions
impl Clone for ConfigureOptions
Source§impl Debug for ConfigureOptions
impl Debug for ConfigureOptions
Source§impl Default for ConfigureOptions
impl Default for ConfigureOptions
impl Eq for ConfigureOptions
Source§impl PartialEq for ConfigureOptions
impl PartialEq for ConfigureOptions
impl StructuralPartialEq for ConfigureOptions
Auto Trait Implementations§
impl Freeze for ConfigureOptions
impl RefUnwindSafe for ConfigureOptions
impl Send for ConfigureOptions
impl Sync for ConfigureOptions
impl Unpin for ConfigureOptions
impl UnsafeUnpin for ConfigureOptions
impl UnwindSafe for ConfigureOptions
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.