pub struct EggressConfig { /* private fields */ }Expand description
Parsed and validated eggress configuration.
Construct via EggressConfig::from_toml_str or EggressConfig::from_toml_file.
Implementations§
Source§impl EggressConfig
impl EggressConfig
Sourcepub fn from_toml_str(input: &str) -> Result<Self, EggressError>
pub fn from_toml_str(input: &str) -> Result<Self, EggressError>
Parse a TOML configuration string.
Sourcepub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self, EggressError>
pub fn from_toml_file(path: impl AsRef<Path>) -> Result<Self, EggressError>
Load and validate a TOML configuration file.
Sourcepub fn source_toml(&self) -> &str
pub fn source_toml(&self) -> &str
Return the original TOML source text.
Sourcepub fn to_redacted_toml(&self) -> Result<String, EggressError>
pub fn to_redacted_toml(&self) -> Result<String, EggressError>
Return the TOML source with credentials redacted.
Listener auth passwords and upstream URI credentials are replaced with
**** / ****:****@ placeholders. The result is suitable for logging
or display without leaking secrets.
Trait Implementations§
Source§impl Clone for EggressConfig
impl Clone for EggressConfig
Source§fn clone(&self) -> EggressConfig
fn clone(&self) -> EggressConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EggressConfig
impl RefUnwindSafe for EggressConfig
impl Send for EggressConfig
impl Sync for EggressConfig
impl Unpin for EggressConfig
impl UnsafeUnpin for EggressConfig
impl UnwindSafe for EggressConfig
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