Struct aws_sdk_ec2::model::RiProductDescription
source · #[non_exhaustive]pub struct RiProductDescription(_);
Implementations§
source§impl RiProductDescription
impl RiProductDescription
sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Returns the &str
value of the enum member.
Examples found in repository?
src/operation_ser.rs (line 11760)
11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803
pub fn serialize_operation_crate_operation_describe_reserved_instances_offerings(
input: &crate::input::DescribeReservedInstancesOfferingsInput,
) -> Result<aws_smithy_http::body::SdkBody, aws_smithy_http::operation::error::SerializationError> {
let mut out = String::new();
#[allow(unused_mut)]
let mut writer = aws_smithy_query::QueryWriter::new(
&mut out,
"DescribeReservedInstancesOfferings",
"2016-11-15",
);
#[allow(unused_mut)]
let mut scope_3324 = writer.prefix("AvailabilityZone");
if let Some(var_3325) = &input.availability_zone {
scope_3324.string(var_3325);
}
#[allow(unused_mut)]
let mut scope_3326 = writer.prefix("Filter");
if let Some(var_3327) = &input.filters {
let mut list_3329 = scope_3326.start_list(true, Some("Filter"));
for item_3328 in var_3327 {
#[allow(unused_mut)]
let mut entry_3330 = list_3329.entry();
crate::query_ser::serialize_structure_crate_model_filter(entry_3330, item_3328)?;
}
list_3329.finish();
}
#[allow(unused_mut)]
let mut scope_3331 = writer.prefix("IncludeMarketplace");
if let Some(var_3332) = &input.include_marketplace {
scope_3331.boolean(*var_3332);
}
#[allow(unused_mut)]
let mut scope_3333 = writer.prefix("InstanceType");
if let Some(var_3334) = &input.instance_type {
scope_3333.string(var_3334.as_str());
}
#[allow(unused_mut)]
let mut scope_3335 = writer.prefix("MaxDuration");
if let Some(var_3336) = &input.max_duration {
scope_3335.number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((*var_3336).into()),
);
}
#[allow(unused_mut)]
let mut scope_3337 = writer.prefix("MaxInstanceCount");
if let Some(var_3338) = &input.max_instance_count {
scope_3337.number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((*var_3338).into()),
);
}
#[allow(unused_mut)]
let mut scope_3339 = writer.prefix("MinDuration");
if let Some(var_3340) = &input.min_duration {
scope_3339.number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((*var_3340).into()),
);
}
#[allow(unused_mut)]
let mut scope_3341 = writer.prefix("OfferingClass");
if let Some(var_3342) = &input.offering_class {
scope_3341.string(var_3342.as_str());
}
#[allow(unused_mut)]
let mut scope_3343 = writer.prefix("ProductDescription");
if let Some(var_3344) = &input.product_description {
scope_3343.string(var_3344.as_str());
}
#[allow(unused_mut)]
let mut scope_3345 = writer.prefix("ReservedInstancesOfferingId");
if let Some(var_3346) = &input.reserved_instances_offering_ids {
let mut list_3348 = scope_3345.start_list(true, None);
for item_3347 in var_3346 {
#[allow(unused_mut)]
let mut entry_3349 = list_3348.entry();
entry_3349.string(item_3347);
}
list_3348.finish();
}
#[allow(unused_mut)]
let mut scope_3350 = writer.prefix("DryRun");
if let Some(var_3351) = &input.dry_run {
scope_3350.boolean(*var_3351);
}
#[allow(unused_mut)]
let mut scope_3352 = writer.prefix("InstanceTenancy");
if let Some(var_3353) = &input.instance_tenancy {
scope_3352.string(var_3353.as_str());
}
#[allow(unused_mut)]
let mut scope_3354 = writer.prefix("MaxResults");
if let Some(var_3355) = &input.max_results {
scope_3354.number(
#[allow(clippy::useless_conversion)]
aws_smithy_types::Number::NegInt((*var_3355).into()),
);
}
#[allow(unused_mut)]
let mut scope_3356 = writer.prefix("NextToken");
if let Some(var_3357) = &input.next_token {
scope_3356.string(var_3357);
}
#[allow(unused_mut)]
let mut scope_3358 = writer.prefix("OfferingType");
if let Some(var_3359) = &input.offering_type {
scope_3358.string(var_3359.as_str());
}
writer.finish();
Ok(aws_smithy_http::body::SdkBody::from(out))
}
Trait Implementations§
source§impl Clone for RiProductDescription
impl Clone for RiProductDescription
source§fn clone(&self) -> RiProductDescription
fn clone(&self) -> RiProductDescription
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 RiProductDescription
impl Debug for RiProductDescription
source§impl Hash for RiProductDescription
impl Hash for RiProductDescription
source§impl Ord for RiProductDescription
impl Ord for RiProductDescription
source§fn cmp(&self, other: &RiProductDescription) -> Ordering
fn cmp(&self, other: &RiProductDescription) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<RiProductDescription> for RiProductDescription
impl PartialEq<RiProductDescription> for RiProductDescription
source§fn eq(&self, other: &RiProductDescription) -> bool
fn eq(&self, other: &RiProductDescription) -> bool
source§impl PartialOrd<RiProductDescription> for RiProductDescription
impl PartialOrd<RiProductDescription> for RiProductDescription
source§fn partial_cmp(&self, other: &RiProductDescription) -> Option<Ordering>
fn partial_cmp(&self, other: &RiProductDescription) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for RiProductDescription
impl StructuralEq for RiProductDescription
impl StructuralPartialEq for RiProductDescription
Auto Trait Implementations§
impl RefUnwindSafe for RiProductDescription
impl Send for RiProductDescription
impl Sync for RiProductDescription
impl Unpin for RiProductDescription
impl UnwindSafe for RiProductDescription
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.