pub struct AstronomyObject {
pub name: AstronomyObjectType,
pub events: Vec<AstronomyEvent>,
pub special: Option<String>,
}Expand description
Astronomical information - sunrise and sunset times.
Fields§
§name: AstronomyObjectTypeObject name. Currently, the sun is the only supported astronomical object.
events: Vec<AstronomyEvent>Lists all sunrise/sunset events during the day.
special: Option<String>This element is only present if there are no astronomical events. In this case it will indicate if the sun is up or down the whole day.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AstronomyObject
impl<'de> Deserialize<'de> for AstronomyObject
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 AstronomyObject
impl RefUnwindSafe for AstronomyObject
impl Send for AstronomyObject
impl Sync for AstronomyObject
impl Unpin for AstronomyObject
impl UnwindSafe for AstronomyObject
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