pub enum QueryKind {
Natal(Query),
Fortune {
natal: Query,
t_target: AskTime,
},
Event {
t_ask: AskTime,
seed: u64,
q_text: Option<String>,
},
Election {
window_start: AskTime,
window_end: AskTime,
category: String,
},
Synastry {
a: Query,
b: Query,
},
Mundane {
p_polity: Query,
},
Locative {
t_ask: AskTime,
seed: u64,
category: String,
},
Onomancy {
name: String,
surname_strokes: Option<u32>,
given_strokes: Option<u32>,
},
}Expand description
问局(需求侧)分类,按「时间轴与切面」模型组织。
每变体携带其所需的输入原子;一切意图最终都映射到一组叶(由编排层的 route 在运行时定夺)。
Natal 直接复用 Query 作载荷——「一个时刻的切片」要的原子与共享输入恰好相同;
其余变体各携该类问局的最小输入原子。
Variants§
Natal(Query)
命:本命盘——一个时刻的静态切片。
Fortune
运:本命 + 目标时刻 → 运势/流年/dasha 定位。
Event
事:占事(问事此刻 + 取机动作)。
Election
择:时窗扫描 + 排序(择吉)。
Synastry
合:合盘(N=2 起,合婚/合伙)。
Mundane
群/国:政体奠基时刻 → 国运盘。
Locative
寻:取方位(占课为主)。
Onomancy
号:字/词模态(姓名笔画/字母值,与时刻无关)。
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryKind
impl<'de> Deserialize<'de> for QueryKind
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 QueryKind
impl RefUnwindSafe for QueryKind
impl Send for QueryKind
impl Sync for QueryKind
impl Unpin for QueryKind
impl UnsafeUnpin for QueryKind
impl UnwindSafe for QueryKind
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