pub struct Location {
pub source: String,
pub database: Option<String>,
pub schema: Option<String>,
pub role: Option<Role>,
pub priority: Option<i64>,
}Expand description
落点:定义之外,由「目录语义 + 连接配置」解析得到(设计 §5.2)。
落点维度 = source + database + schema(schema 仅 PostgreSQL);
role / priority 为链路声明附着的可选属性(缺省 None)。
Fields§
§source: String连接选择(source 名);缺省 DEFAULT_SOURCE
database: Option<String>连接内「库」:Mongo db / MySQL database / SQLite attached / PG 库
schema: Option<String>连接内「schema」:仅 PostgreSQL
role: Option<Role>链路角色(由 links 声明附着;缺省 None = 未声明)
priority: Option<i64>链路优先级(同 role 内升序;None 视作最大;允许负数)
Implementations§
Trait Implementations§
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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