pub struct ServicesConfig {
pub database: DatabaseConfig,
pub tracing: TracingConfig,
}Fields§
§database: DatabaseConfig§tracing: TracingConfigImplementations§
Source§impl ServicesConfig
impl ServicesConfig
Sourcepub const fn database(&self) -> &DatabaseConfig
pub const fn database(&self) -> &DatabaseConfig
returns a reference to the database configuration
Sourcepub const fn database_mut(&mut self) -> &mut DatabaseConfig
pub const fn database_mut(&mut self) -> &mut DatabaseConfig
returns a mutable reference to the database configuration
Sourcepub const fn tracing(&self) -> &TracingConfig
pub const fn tracing(&self) -> &TracingConfig
returns a reference to the tracing configuration
Sourcepub const fn tracing_mut(&mut self) -> &mut TracingConfig
pub const fn tracing_mut(&mut self) -> &mut TracingConfig
returns a mutable reference to the tracing configuration
Sourcepub fn set_database(&mut self, database: DatabaseConfig)
pub fn set_database(&mut self, database: DatabaseConfig)
update the database configuration
Sourcepub const fn set_tracing(&mut self, tracing: TracingConfig)
pub const fn set_tracing(&mut self, tracing: TracingConfig)
update the tracing configuration
Sourcepub fn with_database(self, database: DatabaseConfig) -> Self
pub fn with_database(self, database: DatabaseConfig) -> Self
consumes the current instance to set the database configuration
Sourcepub fn with_tracing(self, tracing: TracingConfig) -> Self
pub fn with_tracing(self, tracing: TracingConfig) -> Self
consumes the current instance to set the tracing configuration
Trait Implementations§
Source§impl Clone for ServicesConfig
impl Clone for ServicesConfig
Source§fn clone(&self) -> ServicesConfig
fn clone(&self) -> ServicesConfig
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 ServicesConfig
impl Debug for ServicesConfig
Source§impl Default for ServicesConfig
impl Default for ServicesConfig
Source§fn default() -> ServicesConfig
fn default() -> ServicesConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServicesConfigwhere
ServicesConfig: Default,
impl<'de> Deserialize<'de> for ServicesConfigwhere
ServicesConfig: 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
Source§impl Display for ServicesConfig
impl Display for ServicesConfig
Source§impl Hash for ServicesConfig
impl Hash for ServicesConfig
Source§impl Ord for ServicesConfig
impl Ord for ServicesConfig
Source§fn cmp(&self, other: &ServicesConfig) -> Ordering
fn cmp(&self, other: &ServicesConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ServicesConfig
impl PartialEq for ServicesConfig
Source§impl PartialOrd for ServicesConfig
impl PartialOrd for ServicesConfig
Source§impl Serialize for ServicesConfig
impl Serialize for ServicesConfig
impl Eq for ServicesConfig
impl StructuralPartialEq for ServicesConfig
Auto Trait Implementations§
impl Freeze for ServicesConfig
impl RefUnwindSafe for ServicesConfig
impl Send for ServicesConfig
impl Sync for ServicesConfig
impl Unpin for ServicesConfig
impl UnwindSafe for ServicesConfig
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