pub struct AstronomyEvent {
pub type: AstronomyEventType,
pub hour: i32,
pub minute: i32,
}Expand description
Information about a sunrise/sunset event for a specific day.
Fields§
§type: AstronomyEventTypeIndicates the type of the event.
hour: i32Hour at which the event is happening (local time).
minute: i32Minute at which the event is happening (local time).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AstronomyEvent
impl<'de> Deserialize<'de> for AstronomyEvent
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 AstronomyEvent
impl RefUnwindSafe for AstronomyEvent
impl Send for AstronomyEvent
impl Sync for AstronomyEvent
impl Unpin for AstronomyEvent
impl UnwindSafe for AstronomyEvent
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