pub struct Query {
pub year: i32,
pub month: u32,
pub day: u32,
pub hour: u32,
pub minute: u32,
pub tz: f64,
pub gender: Option<Gender>,
pub latitude: Option<f64>,
pub longitude: Option<f64>,
pub seed: Option<u64>,
pub name: Option<String>,
pub schools: BTreeMap<String, String>,
}Expand description
排盘查询(共享输入)。
Fields§
§year: i32公历年。
month: u32公历月 1..12。
day: u32公历日 1..31。
hour: u32时 0..23。
minute: u32分 0..59。
tz: f64时区偏移小时(中国 +8,日本 +9)。
gender: Option<Gender>性别(可选)。
latitude: Option<f64>出生地纬度(度,北纬为正;占星 Asc/MC 需要,可选)。
longitude: Option<f64>出生地经度(度,东经为正;占星 Asc/MC 需要,可选)。
seed: Option<u64>C 族(抽样/起卦)的可复现种子;None 时由共享时刻派生(见 effective_seed)。
name: Option<String>姓名(D 族数字学用,可选)。拉丁字母按 Pythagorean/Chaldean 取值。
schools: BTreeMap<String, String>流派选择:key=叶 id,value=该叶选定的流派 id(见各叶 schools())。
缺省即按各叶 default = true 的流派算。同一次 cast_all 可为不同叶分别指定。
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
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 Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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