pub struct WaypointConfig {
pub database: DatabaseConfig,
pub migrations: MigrationSettings,
pub hooks: HooksConfig,
pub placeholders: HashMap<String, String>,
}Expand description
Top-level configuration for Waypoint.
Fields§
§database: DatabaseConfig§migrations: MigrationSettings§hooks: HooksConfig§placeholders: HashMap<String, String>Implementations§
Source§impl WaypointConfig
impl WaypointConfig
Sourcepub fn load(config_path: Option<&str>, overrides: &CliOverrides) -> Result<Self>
pub fn load(config_path: Option<&str>, overrides: &CliOverrides) -> Result<Self>
Load configuration with the following priority (highest wins):
- CLI arguments
- Environment variables
- TOML config file
- Built-in defaults
Sourcepub fn connection_string(&self) -> Result<String>
pub fn connection_string(&self) -> Result<String>
Build a connection string from the config.
Prefers url if set; otherwise builds from individual fields.
Handles JDBC-style URLs by stripping the jdbc: prefix and
extracting user and password query parameters.
Trait Implementations§
Source§impl Clone for WaypointConfig
impl Clone for WaypointConfig
Source§fn clone(&self) -> WaypointConfig
fn clone(&self) -> WaypointConfig
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 WaypointConfig
impl Debug for WaypointConfig
Source§impl Default for WaypointConfig
impl Default for WaypointConfig
Source§fn default() -> WaypointConfig
fn default() -> WaypointConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WaypointConfig
impl RefUnwindSafe for WaypointConfig
impl Send for WaypointConfig
impl Sync for WaypointConfig
impl Unpin for WaypointConfig
impl UnsafeUnpin for WaypointConfig
impl UnwindSafe for WaypointConfig
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