pub struct Config<Text: ConfigText = &'static str, Path: ConfigPath = Text> {
pub application: Option<ApplicationConfig<Text>>,
pub database: Option<DatabaseConfig<Text, Path>>,
pub deploy: Option<DeployConfig<Text>>,
pub scripts: ScriptsConfig<Text, Path>,
pub paths: ProjectPaths<Path>,
pub registries: RegistriesConfig<Text>,
pub build: BuildConfig<Text, Path>,
}Fields§
§application: Option<ApplicationConfig<Text>>§database: Option<DatabaseConfig<Text, Path>>§deploy: Option<DeployConfig<Text>>§scripts: ScriptsConfig<Text, Path>§paths: ProjectPaths<Path>§registries: RegistriesConfig<Text>§build: BuildConfig<Text, Path>Trait Implementations§
Source§impl<'de, Text, Path> Deserialize<'de> for Config<Text, Path>where
Config<Text, Path>: Default,
Text: Deserialize<'de> + ConfigText,
Path: Deserialize<'de> + ConfigPath,
impl<'de, Text, Path> Deserialize<'de> for Config<Text, Path>where
Config<Text, Path>: Default,
Text: Deserialize<'de> + ConfigText,
Path: Deserialize<'de> + ConfigPath,
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<Text, Path> Forget for Config<Text, Path>
impl<Text, Path> Freeze for Config<Text, Path>
impl<Text, Path> Move for Config<Text, Path>
impl<Text, Path> RefUnwindSafe for Config<Text, Path>where
Option<ApplicationConfig<Text>>: RefUnwindSafe,
Option<DatabaseConfig<Text, Path>>: RefUnwindSafe,
Option<DeployConfig<Text>>: RefUnwindSafe,
ScriptsConfig<Text, Path>: RefUnwindSafe,
ProjectPaths<Path>: RefUnwindSafe,
RegistriesConfig<Text>: RefUnwindSafe,
BuildConfig<Text, Path>: RefUnwindSafe,
impl<Text, Path> Send for Config<Text, Path>
impl<Text, Path> Sync for Config<Text, Path>
impl<Text, Path> Unpin for Config<Text, Path>
impl<Text, Path> UnsafeUnpin for Config<Text, Path>where
Option<ApplicationConfig<Text>>: UnsafeUnpin,
Option<DatabaseConfig<Text, Path>>: UnsafeUnpin,
Option<DeployConfig<Text>>: UnsafeUnpin,
ScriptsConfig<Text, Path>: UnsafeUnpin,
ProjectPaths<Path>: UnsafeUnpin,
RegistriesConfig<Text>: UnsafeUnpin,
BuildConfig<Text, Path>: UnsafeUnpin,
impl<Text, Path> UnwindSafe for Config<Text, Path>where
Option<ApplicationConfig<Text>>: UnwindSafe,
Option<DatabaseConfig<Text, Path>>: UnwindSafe,
Option<DeployConfig<Text>>: UnwindSafe,
ScriptsConfig<Text, Path>: UnwindSafe,
ProjectPaths<Path>: UnwindSafe,
RegistriesConfig<Text>: UnwindSafe,
BuildConfig<Text, Path>: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more