pub struct AdminConfig {
pub address: Option<String>,
pub verbose: bool,
}Expand description
Admin endpoint settings for health check listeners.
use praxis_core::config::AdminConfig;
let admin: AdminConfig = serde_yaml::from_str(
r#"
address: "127.0.0.1:9901"
verbose: true
"#,
)
.unwrap();
assert_eq!(admin.address.as_deref(), Some("127.0.0.1:9901"));
assert!(admin.verbose);Fields§
§address: Option<String>Admin endpoint bind address.
verbose: boolInclude per-cluster detail in /ready response.
Trait Implementations§
Source§impl Clone for AdminConfig
impl Clone for AdminConfig
Source§fn clone(&self) -> AdminConfig
fn clone(&self) -> AdminConfig
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 moreSource§impl Debug for AdminConfig
impl Debug for AdminConfig
Source§impl Default for AdminConfig
impl Default for AdminConfig
Source§fn default() -> AdminConfig
fn default() -> AdminConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AdminConfigwhere
AdminConfig: Default,
impl<'de> Deserialize<'de> for AdminConfigwhere
AdminConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AdminConfig
impl RefUnwindSafe for AdminConfig
impl Send for AdminConfig
impl Sync for AdminConfig
impl Unpin for AdminConfig
impl UnsafeUnpin for AdminConfig
impl UnwindSafe for AdminConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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