pub struct SourceDecl {
pub name: String,
pub kind: String,
pub databases: Vec<String>,
}Expand description
一个连接声明(store.config.json 的 sources 一项)
Fields§
§name: String§kind: String小写归一后:mongodb/mysql/pg/sqlite(kind 白名单见执行文档 §4.2)
databases: Vec<String>该连接维护的库
Trait Implementations§
Source§impl Clone for SourceDecl
impl Clone for SourceDecl
Auto Trait Implementations§
impl Freeze for SourceDecl
impl RefUnwindSafe for SourceDecl
impl Send for SourceDecl
impl Sync for SourceDecl
impl Unpin for SourceDecl
impl UnsafeUnpin for SourceDecl
impl UnwindSafe for SourceDecl
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