pub struct Palace {
pub number: u8,
pub direction: Direction,
pub trigram: Option<Trigram>,
pub element: Element,
pub earth_stem: Stem,
pub hosted_earth_stem: Option<Stem>,
pub heaven_stems: Vec<HeavenStem>,
pub stars: Vec<Star>,
pub door: Option<Door>,
pub deity: Option<Deity>,
pub void_branches: Vec<Branch>,
pub is_horse: bool,
}Expand description
All fixed and moving components of one Luo Shu palace.
Fields§
§number: u8Luo Shu number, one through nine; the output array is in this order.
direction: DirectionGeographic direction (the center has its own value).
trigram: Option<Trigram>Later Heaven trigram; absent for the center.
element: ElementFixed palace element.
earth_stem: StemNative earth-plate stem, including the actual center stem at palace five.
hosted_earth_stem: Option<Stem>Additional center earth stem hosted at 坤二; absent elsewhere.
heaven_stems: Vec<HeavenStem>Rotated heavenly-plate stems; two with 天芮/天禽, none at the center.
stars: Vec<Star>Moving stars; two with 天芮/天禽, none at the center.
door: Option<Door>Moving door; absent at the center.
deity: Option<Deity>Moving deity; absent at the center.
void_branches: Vec<Branch>Hour-pillar void branches contained in this palace; may hold both.
is_horse: boolWhether the hour-branch travelling horse occupies this palace.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Palace
impl<'de> Deserialize<'de> for Palace
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
impl Eq for Palace
impl StructuralPartialEq for Palace
Auto Trait Implementations§
impl Forget for Palace
impl Freeze for Palace
impl Move for Palace
impl RefUnwindSafe for Palace
impl Send for Palace
impl Sync for Palace
impl Unpin for Palace
impl UnsafeUnpin for Palace
impl UnwindSafe for Palace
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