Struct aws_sdk_cloudfront::model::OriginRequestPolicyList
source · #[non_exhaustive]pub struct OriginRequestPolicyList { /* private fields */ }
Expand description
A list of origin request policies.
Implementations§
source§impl OriginRequestPolicyList
impl OriginRequestPolicyList
sourcepub fn next_marker(&self) -> Option<&str>
pub fn next_marker(&self) -> Option<&str>
If there are more items in the list than are in this response, this element is present. It contains the value that you should use in the Marker
field of a subsequent request to continue listing origin request policies where you left off.
sourcepub fn max_items(&self) -> Option<i32>
pub fn max_items(&self) -> Option<i32>
The maximum number of origin request policies requested.
sourcepub fn quantity(&self) -> Option<i32>
pub fn quantity(&self) -> Option<i32>
The total number of origin request policies returned in the response.
sourcepub fn items(&self) -> Option<&[OriginRequestPolicySummary]>
pub fn items(&self) -> Option<&[OriginRequestPolicySummary]>
Contains the origin request policies in the list.
source§impl OriginRequestPolicyList
impl OriginRequestPolicyList
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OriginRequestPolicyList
.
Examples found in repository?
src/xml_deser.rs (line 8744)
8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804
pub fn deser_structure_crate_model_origin_request_policy_list(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OriginRequestPolicyList, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OriginRequestPolicyList::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("NextMarker") /* NextMarker com.amazonaws.cloudfront#OriginRequestPolicyList$NextMarker */ => {
let var_317 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_next_marker(var_317);
}
,
s if s.matches("MaxItems") /* MaxItems com.amazonaws.cloudfront#OriginRequestPolicyList$MaxItems */ => {
let var_318 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_max_items(var_318);
}
,
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#OriginRequestPolicyList$Quantity */ => {
let var_319 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.cloudfront#integer`)"))
}
?
)
;
builder = builder.set_quantity(var_319);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#OriginRequestPolicyList$Items */ => {
let var_320 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_origin_request_policy_summary_list(&mut tag)
?
)
;
builder = builder.set_items(var_320);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for OriginRequestPolicyList
impl Clone for OriginRequestPolicyList
source§fn clone(&self) -> OriginRequestPolicyList
fn clone(&self) -> OriginRequestPolicyList
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