pub struct AstronomyDay {
pub date: DateTime,
pub daylength: Option<String>,
pub moonphase: Option<MoonPhase>,
pub events: Vec<AstronomyDayEvent>,
}Expand description
Information about an astronomical object for a specific day.
Fields§
§date: DateTimeDate for the current information.
daylength: Option<String>Length of this day (time between sunrise and sunset). If the sun is not up on this day, 00:00:00 will be reported. If the sun does not set on this day, the value will read 24:00:00. Attribute only applies for the sun object and if requested.
moonphase: Option<MoonPhase>Moon phase for the day. Only if requested.
events: Vec<AstronomyDayEvent>Lists all events during the day.
Trait Implementations§
Source§impl Debug for AstronomyDay
impl Debug for AstronomyDay
Source§impl<'de> Deserialize<'de> for AstronomyDay
impl<'de> Deserialize<'de> for AstronomyDay
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 AstronomyDay
impl RefUnwindSafe for AstronomyDay
impl Send for AstronomyDay
impl Sync for AstronomyDay
impl Unpin for AstronomyDay
impl UnwindSafe for AstronomyDay
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