#[non_exhaustive]pub struct QueryForecastInput {
pub forecast_arn: Option<String>,
pub start_date: Option<String>,
pub end_date: Option<String>,
pub filters: Option<HashMap<String, String>>,
pub next_token: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.forecast_arn: Option<String>
The Amazon Resource Name (ARN) of the forecast to query.
start_date: Option<String>
The start date for the forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss (ISO 8601 format). For example, 2015-01-01T08:00:00.
end_date: Option<String>
The end date for the forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss (ISO 8601 format). For example, 2015-01-01T20:00:00.
filters: Option<HashMap<String, String>>
The filtering criteria to apply when retrieving the forecast. For example, to get the forecast for client_21
in the electricity usage dataset, specify the following:
{"item_id" : "client_21"}
To get the full forecast, use the CreateForecastExportJob operation.
next_token: Option<String>
If the result of the previous request was truncated, the response includes a NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Implementations§
source§impl QueryForecastInput
impl QueryForecastInput
sourcepub fn forecast_arn(&self) -> Option<&str>
pub fn forecast_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the forecast to query.
sourcepub fn start_date(&self) -> Option<&str>
pub fn start_date(&self) -> Option<&str>
The start date for the forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss (ISO 8601 format). For example, 2015-01-01T08:00:00.
sourcepub fn end_date(&self) -> Option<&str>
pub fn end_date(&self) -> Option<&str>
The end date for the forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss (ISO 8601 format). For example, 2015-01-01T20:00:00.
sourcepub fn filters(&self) -> Option<&HashMap<String, String>>
pub fn filters(&self) -> Option<&HashMap<String, String>>
The filtering criteria to apply when retrieving the forecast. For example, to get the forecast for client_21
in the electricity usage dataset, specify the following:
{"item_id" : "client_21"}
To get the full forecast, use the CreateForecastExportJob operation.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
If the result of the previous request was truncated, the response includes a NextToken
. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
source§impl QueryForecastInput
impl QueryForecastInput
sourcepub fn builder() -> QueryForecastInputBuilder
pub fn builder() -> QueryForecastInputBuilder
Creates a new builder-style object to manufacture QueryForecastInput
.
Trait Implementations§
source§impl Clone for QueryForecastInput
impl Clone for QueryForecastInput
source§fn clone(&self) -> QueryForecastInput
fn clone(&self) -> QueryForecastInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryForecastInput
impl Debug for QueryForecastInput
source§impl PartialEq for QueryForecastInput
impl PartialEq for QueryForecastInput
impl StructuralPartialEq for QueryForecastInput
Auto Trait Implementations§
impl Freeze for QueryForecastInput
impl RefUnwindSafe for QueryForecastInput
impl Send for QueryForecastInput
impl Sync for QueryForecastInput
impl Unpin for QueryForecastInput
impl UnwindSafe for QueryForecastInput
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more