pub struct AreaBriefingRequest {
pub area: Area,
pub products: Vec<ProductKind>,
pub lookback_hours: Option<u32>,
pub departure_at: Option<DateTime<Utc>>,
}Expand description
A request for a simple area briefing.
Fields§
§area: AreaArea the briefing covers.
products: Vec<ProductKind>Products to include. Empty means the source’s default set.
lookback_hours: Option<u32>How many hours of history to include where a product has history
(e.g. past METARs). None means the source’s default.
departure_at: Option<DateTime<Utc>>Intended departure time the briefing is for. None means “now”.
Sources that brief relative to a departure instant (Leidos) use
it; observation-oriented sources may ignore it.
Trait Implementations§
Source§impl Clone for AreaBriefingRequest
impl Clone for AreaBriefingRequest
Source§fn clone(&self) -> AreaBriefingRequest
fn clone(&self) -> AreaBriefingRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AreaBriefingRequest
impl Debug for AreaBriefingRequest
Source§impl<'de> Deserialize<'de> for AreaBriefingRequest
impl<'de> Deserialize<'de> for AreaBriefingRequest
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
Source§impl PartialEq for AreaBriefingRequest
impl PartialEq for AreaBriefingRequest
Source§fn eq(&self, other: &AreaBriefingRequest) -> bool
fn eq(&self, other: &AreaBriefingRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AreaBriefingRequest
impl Serialize for AreaBriefingRequest
impl StructuralPartialEq for AreaBriefingRequest
Auto Trait Implementations§
impl Freeze for AreaBriefingRequest
impl RefUnwindSafe for AreaBriefingRequest
impl Send for AreaBriefingRequest
impl Sync for AreaBriefingRequest
impl Unpin for AreaBriefingRequest
impl UnsafeUnpin for AreaBriefingRequest
impl UnwindSafe for AreaBriefingRequest
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