pub struct BaziOptions<'a> {
pub solar_time: bool,
pub zi_hour: &'a str,
pub sex: Option<&'a str>,
pub luck_pillars: u8,
pub year: Option<i32>,
pub date: Option<&'a str>,
}Expand description
How to cast the pillars.
Fields§
§solar_time: boolCast the day and hour on true solar time at the birthplace (true, the default)
or on civil time.
zi_hour: &'a str“next_day” (default): the day changes at 23:00; “split”: at midnight.
sex: Option<&'a str>“male” or “female”: sets the direction of the luck pillars, which are left out without it.
luck_pillars: u8How many ten-year luck pillars to list (default 10).
year: Option<i32>A year whose pillar (流年, changing at 立春) to give, seen from the Day Master.
date: Option<&'a str>A date, YYYY-MM-DD, whose year, month and day pillars (流年, 流月, 流日) to give,
read at noon civil time with the birth’s UTC offset. Dates from 1900-01-06 to 2100.
Trait Implementations§
Source§impl<'a> Clone for BaziOptions<'a>
impl<'a> Clone for BaziOptions<'a>
Source§impl<'a> Debug for BaziOptions<'a>
impl<'a> Debug for BaziOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for BaziOptions<'a>
impl<'a> RefUnwindSafe for BaziOptions<'a>
impl<'a> Send for BaziOptions<'a>
impl<'a> Sync for BaziOptions<'a>
impl<'a> Unpin for BaziOptions<'a>
impl<'a> UnsafeUnpin for BaziOptions<'a>
impl<'a> UnwindSafe for BaziOptions<'a>
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