pub struct TestAppConfig {
pub service: ServiceConfig,
}Expand description
Minimal application config for tests that need an AppConfig.
Fields§
§service: ServiceConfigEmbedded service configuration.
Implementations§
Trait Implementations§
Source§impl AppConfig for TestAppConfig
impl AppConfig for TestAppConfig
Source§fn apply_defaults(&mut self)
fn apply_defaults(&mut self)
Apply any programmatic defaults after deserialization.
Source§fn service_config(&self) -> &ServiceConfig
fn service_config(&self) -> &ServiceConfig
Return a reference to the embedded
ServiceConfig.Source§impl Clone for TestAppConfig
impl Clone for TestAppConfig
Source§fn clone(&self) -> TestAppConfig
fn clone(&self) -> TestAppConfig
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 moreSource§impl Debug for TestAppConfig
impl Debug for TestAppConfig
Source§impl Default for TestAppConfig
impl Default for TestAppConfig
Source§fn default() -> TestAppConfig
fn default() -> TestAppConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TestAppConfig
impl<'de> Deserialize<'de> for TestAppConfig
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 Validate for TestAppConfig
impl Validate for TestAppConfig
Auto Trait Implementations§
impl Freeze for TestAppConfig
impl RefUnwindSafe for TestAppConfig
impl Send for TestAppConfig
impl Sync for TestAppConfig
impl Unpin for TestAppConfig
impl UnsafeUnpin for TestAppConfig
impl UnwindSafe for TestAppConfig
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