pub struct ResolvedConfig {
pub environment_name: String,
pub api_endpoint: Url,
pub api_key: SecretString,
pub resources: ResourcesConfig,
pub naming: NamingConfig,
pub excludes: HashMap<ResourceKind, Vec<Regex>>,
}Expand description
Fully-resolved config: an environment has been picked and the API key has been pulled out of the OS environment.
Fields§
§environment_name: String§api_endpoint: Url§api_key: SecretStringAPI key, secrecy-wrapped. Use secrecy::ExposeSecret at the call
site that needs the plaintext (typically only the BrazeClient
constructor).
resources: ResourcesConfig§naming: NamingConfig§excludes: HashMap<ResourceKind, Vec<Regex>>Compiled exclude_patterns per resource kind. Populated by
ConfigFile::resolve_with so callers can look up a &[Regex]
without recompiling on every invocation.
Implementations§
Source§impl ResolvedConfig
impl ResolvedConfig
Sourcepub fn excludes_for(&self, kind: ResourceKind) -> &[Regex]
pub fn excludes_for(&self, kind: ResourceKind) -> &[Regex]
Compiled exclude patterns for kind. Returns an empty slice when
no patterns are configured.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResolvedConfig
impl RefUnwindSafe for ResolvedConfig
impl Send for ResolvedConfig
impl Sync for ResolvedConfig
impl Unpin for ResolvedConfig
impl UnsafeUnpin for ResolvedConfig
impl UnwindSafe for ResolvedConfig
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