pub struct EcoConfig {
pub web_framework: WebFramework,
pub middleware_features: Vec<MiddlewareFeature>,
pub migration_source_orm: Option<SourceOrm>,
pub migration_dry_run: bool,
pub schema_diff_left_url: Option<String>,
pub schema_diff_right_url: Option<String>,
}Expand description
生态扩展配置聚合(v7.3.0 任务 4.1)
统一驱动 warp 中间件适配、源 ORM 迁移、schema diff 三项生态扩展能力。
migration_dry_run 默认 true(不自动执行 DDL)。
Fields§
§web_framework: WebFrameworkWeb 框架(默认 Axum)
middleware_features: Vec<MiddlewareFeature>启用的中间件特性列表
migration_source_orm: Option<SourceOrm>迁移源 ORM(None 表示不从其他 ORM 迁移)
migration_dry_run: bool迁移 dry-run 模式(默认 true,不自动执行 DDL)
schema_diff_left_url: Option<String>schema diff 左库 URL(None 表示不启用 schema diff)
schema_diff_right_url: Option<String>schema diff 右库 URL
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EcoConfig
impl<'de> Deserialize<'de> for EcoConfig
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 EcoConfig
impl RefUnwindSafe for EcoConfig
impl Send for EcoConfig
impl Sync for EcoConfig
impl Unpin for EcoConfig
impl UnsafeUnpin for EcoConfig
impl UnwindSafe for EcoConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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