pub struct DatabaseLinkConfig {
pub type: DatabaseType,
pub url: Option<String>,
pub env: Option<String>,
}Expand description
数据库链接配置(保留向后兼容)
Fields§
§type: DatabaseType数据库类型
url: Option<String>数据库连接字符串(可以直接包含密码)
env: Option<String>环境变量名称(用于从环境变量获取连接字符串)
Implementations§
Trait Implementations§
Source§impl Clone for DatabaseLinkConfig
impl Clone for DatabaseLinkConfig
Source§fn clone(&self) -> DatabaseLinkConfig
fn clone(&self) -> DatabaseLinkConfig
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 DatabaseLinkConfig
impl Debug for DatabaseLinkConfig
Source§impl<'de> Deserialize<'de> for DatabaseLinkConfig
impl<'de> Deserialize<'de> for DatabaseLinkConfig
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 DatabaseLinkConfig
impl RefUnwindSafe for DatabaseLinkConfig
impl Send for DatabaseLinkConfig
impl Sync for DatabaseLinkConfig
impl Unpin for DatabaseLinkConfig
impl UnsafeUnpin for DatabaseLinkConfig
impl UnwindSafe for DatabaseLinkConfig
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