pub struct LinkDecl {
pub source: String,
pub role: Option<Role>,
pub priority: Option<i64>,
pub database: Option<String>,
pub schema: Option<String>,
}Expand description
一条链路声明(store.config.json 的 links[<schema>] 一项)。
外置配置,禁写入 schema 定义文件(设计 §4.1);source/database/schema
三元组标识一个既有或待补建的落点,role/priority 为读解析排序属性。
Fields§
§source: String连接名(必须已在 sources 声明)
role: Option<Role>链路角色;缺省 None = 未声明(排序时视作最低层,不参与 primary 唯一性校验)
priority: Option<i64>同 role 内升序排序;缺省 None = 视作最大;允许负数
database: Option<String>库:缺省 = sources[source].databases 的唯一库(多库须显式给)
schema: Option<String>连接内 schema(仅 PG 有意义)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkDecl
impl RefUnwindSafe for LinkDecl
impl Send for LinkDecl
impl Sync for LinkDecl
impl Unpin for LinkDecl
impl UnsafeUnpin for LinkDecl
impl UnwindSafe for LinkDecl
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