Struct aws_sdk_cloudfront::model::CachePolicySummary
source · #[non_exhaustive]pub struct CachePolicySummary { /* private fields */ }
Expand description
Contains a cache policy.
Implementations§
source§impl CachePolicySummary
impl CachePolicySummary
sourcepub fn type(&self) -> Option<&CachePolicyType>
pub fn type(&self) -> Option<&CachePolicyType>
The type of cache policy, either managed
(created by Amazon Web Services) or custom
(created in this Amazon Web Services account).
sourcepub fn cache_policy(&self) -> Option<&CachePolicy>
pub fn cache_policy(&self) -> Option<&CachePolicy>
The cache policy.
source§impl CachePolicySummary
impl CachePolicySummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CachePolicySummary
.
Examples found in repository?
src/xml_deser.rs (line 12662)
12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693
pub fn deser_structure_crate_model_cache_policy_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CachePolicySummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CachePolicySummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Type") /* Type com.amazonaws.cloudfront#CachePolicySummary$Type */ => {
let var_505 =
Some(
Result::<crate::model::CachePolicyType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::CachePolicyType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_type(var_505);
}
,
s if s.matches("CachePolicy") /* CachePolicy com.amazonaws.cloudfront#CachePolicySummary$CachePolicy */ => {
let var_506 =
Some(
crate::xml_deser::deser_structure_crate_model_cache_policy(&mut tag)
?
)
;
builder = builder.set_cache_policy(var_506);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CachePolicySummary
impl Clone for CachePolicySummary
source§fn clone(&self) -> CachePolicySummary
fn clone(&self) -> CachePolicySummary
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 more