pub struct ListDashboardVersions { /* private fields */ }Expand description
Operation shape for ListDashboardVersions.
This is usually constructed for you using the the fluent builder returned by
list_dashboard_versions.
See crate::client::fluent_builders::ListDashboardVersions for more details about the operation.
Implementations§
source§impl ListDashboardVersions
impl ListDashboardVersions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ListDashboardVersionsInput.
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ListDashboardVersions operation.
Examples found in repository?
src/input.rs (line 15819)
15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827
pub async fn make_operation(
&self,
_config: &crate::config::Config,
) -> std::result::Result<
aws_smithy_http::operation::Operation<
crate::operation::ListDashboardVersions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::operation::error::BuildError,
> {
let mut request = {
fn uri_base(
_input: &crate::input::ListDashboardVersionsInput,
output: &mut String,
) -> Result<(), aws_smithy_http::operation::error::BuildError> {
let input_174 = &_input.aws_account_id;
let input_174 = input_174.as_ref().ok_or_else(|| {
aws_smithy_http::operation::error::BuildError::missing_field(
"aws_account_id",
"cannot be empty or unset",
)
})?;
let aws_account_id = aws_smithy_http::label::fmt_string(
input_174,
aws_smithy_http::label::EncodingStrategy::Default,
);
if aws_account_id.is_empty() {
return Err(
aws_smithy_http::operation::error::BuildError::missing_field(
"aws_account_id",
"cannot be empty or unset",
),
);
}
let input_175 = &_input.dashboard_id;
let input_175 = input_175.as_ref().ok_or_else(|| {
aws_smithy_http::operation::error::BuildError::missing_field(
"dashboard_id",
"cannot be empty or unset",
)
})?;
let dashboard_id = aws_smithy_http::label::fmt_string(
input_175,
aws_smithy_http::label::EncodingStrategy::Default,
);
if dashboard_id.is_empty() {
return Err(
aws_smithy_http::operation::error::BuildError::missing_field(
"dashboard_id",
"cannot be empty or unset",
),
);
}
write!(
output,
"/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions",
AwsAccountId = aws_account_id,
DashboardId = dashboard_id
)
.expect("formatting should succeed");
Ok(())
}
fn uri_query(
_input: &crate::input::ListDashboardVersionsInput,
mut output: &mut String,
) -> Result<(), aws_smithy_http::operation::error::BuildError> {
let mut query = aws_smithy_http::query::Writer::new(&mut output);
if let Some(inner_176) = &_input.next_token {
{
query.push_kv(
"next-token",
&aws_smithy_http::query::fmt_string(&inner_176),
);
}
}
if let Some(inner_177) = &_input.max_results {
if *inner_177 != 0 {
query.push_kv(
"max-results",
aws_smithy_types::primitive::Encoder::from(*inner_177).encode(),
);
}
}
Ok(())
}
#[allow(clippy::unnecessary_wraps)]
fn update_http_builder(
input: &crate::input::ListDashboardVersionsInput,
builder: http::request::Builder,
) -> std::result::Result<
http::request::Builder,
aws_smithy_http::operation::error::BuildError,
> {
let mut uri = String::new();
uri_base(input, &mut uri)?;
uri_query(input, &mut uri)?;
Ok(builder.method("GET").uri(uri))
}
let mut builder = update_http_builder(&self, http::request::Builder::new())?;
builder
};
let mut properties = aws_smithy_http::property_bag::SharedPropertyBag::new();
#[allow(clippy::useless_conversion)]
let body = aws_smithy_http::body::SdkBody::from("");
let request = request.body(body).expect("should be valid request");
let mut request = aws_smithy_http::operation::Request::from_parts(request, properties);
request
.properties_mut()
.insert(aws_smithy_http::http_versions::DEFAULT_HTTP_VERSION_LIST.clone());
let mut user_agent = aws_http::user_agent::AwsUserAgent::new_from_environment(
aws_types::os_shim_internal::Env::real(),
crate::API_METADATA.clone(),
);
if let Some(app_name) = _config.app_name() {
user_agent = user_agent.with_app_name(app_name.clone());
}
request.properties_mut().insert(user_agent);
let mut signing_config = aws_sig_auth::signer::OperationSigningConfig::default_config();
request.properties_mut().insert(signing_config);
request
.properties_mut()
.insert(aws_types::SigningService::from_static(
_config.signing_service(),
));
if let Some(region) = &_config.region {
request
.properties_mut()
.insert(aws_types::region::SigningRegion::from(region.clone()));
}
let endpoint_params = aws_endpoint::Params::new(_config.region.clone());
request
.properties_mut()
.insert::<aws_smithy_http::endpoint::Result>(
_config.endpoint_resolver.resolve_endpoint(&endpoint_params),
);
if let Some(region) = &_config.region {
request.properties_mut().insert(region.clone());
}
aws_http::auth::set_provider(
&mut request.properties_mut(),
_config.credentials_provider.clone(),
);
let op = aws_smithy_http::operation::Operation::new(
request,
crate::operation::ListDashboardVersions::new(),
)
.with_metadata(aws_smithy_http::operation::Metadata::new(
"ListDashboardVersions",
"quicksight",
));
let op = op.with_retry_classifier(aws_http::retry::AwsResponseRetryClassifier::new());
Ok(op)
}Trait Implementations§
source§impl Clone for ListDashboardVersions
impl Clone for ListDashboardVersions
source§fn clone(&self) -> ListDashboardVersions
fn clone(&self) -> ListDashboardVersions
Returns a copy of the value. Read more
1.0.0 · 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 ListDashboardVersions
impl Debug for ListDashboardVersions
source§impl Default for ListDashboardVersions
impl Default for ListDashboardVersions
source§fn default() -> ListDashboardVersions
fn default() -> ListDashboardVersions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ListDashboardVersions
impl Send for ListDashboardVersions
impl Sync for ListDashboardVersions
impl Unpin for ListDashboardVersions
impl UnwindSafe for ListDashboardVersions
Blanket Implementations§
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> ParseHttpResponse for Twhere
T: ParseStrictResponse,
impl<T> ParseHttpResponse for Twhere
T: ParseStrictResponse,
§type Output = <T as ParseStrictResponse>::Output
type Output = <T as ParseStrictResponse>::Output
Output type of the HttpResponse. Read more
source§fn parse_unloaded(
&self,
_response: &mut Response
) -> Option<<T as ParseHttpResponse>::Output>
fn parse_unloaded(
&self,
_response: &mut Response
) -> Option<<T as ParseHttpResponse>::Output>
Parse an HTTP request without reading the body. If the body must be provided to proceed,
return
None Read moresource§fn parse_loaded(
&self,
response: &Response<Bytes>
) -> <T as ParseHttpResponse>::Output
fn parse_loaded(
&self,
response: &Response<Bytes>
) -> <T as ParseHttpResponse>::Output
Parse an HTTP request from a fully loaded body. This is for standard request/response style
APIs like AwsJson 1.0/1.1 and the error path of most streaming APIs Read more