pub struct SolarTerm {
pub name: String,
pub longitude: u16,
pub jie: bool,
pub utc: String,
}Expand description
One of the 24 solar terms (節氣): the moment the Sun reaches a multiple of 15°.
Fields§
§name: StringPinyin code, e.g. “lichun”.
longitude: u16The Sun’s apparent ecliptic longitude, degrees (a multiple of 15).
jie: boolA “jie” (節) term, which opens a solar month (longitudes 15° + 30°·k); otherwise a major term (中氣, multiples of 30°).
utc: StringThe moment, ISO 8601 UTC to the second.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SolarTerm
impl<'de> Deserialize<'de> for SolarTerm
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 StructuralPartialEq for SolarTerm
Auto Trait Implementations§
impl Freeze for SolarTerm
impl RefUnwindSafe for SolarTerm
impl Send for SolarTerm
impl Sync for SolarTerm
impl Unpin for SolarTerm
impl UnsafeUnpin for SolarTerm
impl UnwindSafe for SolarTerm
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