pub struct EcoConfigBuilder { /* private fields */ }Expand description
生态扩展配置 builder(v7.3.0 任务 4.1)
Implementations§
Source§impl EcoConfigBuilder
impl EcoConfigBuilder
Sourcepub fn web_framework(self, fw: WebFramework) -> Self
pub fn web_framework(self, fw: WebFramework) -> Self
设置 Web 框架
Sourcepub fn middleware_features(self, features: Vec<MiddlewareFeature>) -> Self
pub fn middleware_features(self, features: Vec<MiddlewareFeature>) -> Self
设置中间件特性列表
Sourcepub fn migration_source_orm(self, orm: SourceOrm) -> Self
pub fn migration_source_orm(self, orm: SourceOrm) -> Self
设置迁移源 ORM
Sourcepub fn migration_dry_run(self, dry_run: bool) -> Self
pub fn migration_dry_run(self, dry_run: bool) -> Self
设置迁移 dry-run
Sourcepub fn schema_diff_left_url(self, url: impl Into<String>) -> Self
pub fn schema_diff_left_url(self, url: impl Into<String>) -> Self
设置 schema diff 左库 URL
Sourcepub fn schema_diff_right_url(self, url: impl Into<String>) -> Self
pub fn schema_diff_right_url(self, url: impl Into<String>) -> Self
设置 schema diff 右库 URL
Trait Implementations§
Source§impl Clone for EcoConfigBuilder
impl Clone for EcoConfigBuilder
Source§fn clone(&self) -> EcoConfigBuilder
fn clone(&self) -> EcoConfigBuilder
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 EcoConfigBuilder
impl Debug for EcoConfigBuilder
Source§impl Default for EcoConfigBuilder
impl Default for EcoConfigBuilder
Source§fn default() -> EcoConfigBuilder
fn default() -> EcoConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EcoConfigBuilder
impl RefUnwindSafe for EcoConfigBuilder
impl Send for EcoConfigBuilder
impl Sync for EcoConfigBuilder
impl Unpin for EcoConfigBuilder
impl UnsafeUnpin for EcoConfigBuilder
impl UnwindSafe for EcoConfigBuilder
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,
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