Struct aws_sdk_cloudfront::model::PublicKeyList
source · #[non_exhaustive]pub struct PublicKeyList { /* private fields */ }Expand description
A list of public keys that you can use with signed URLs and signed cookies, or with field-level encryption.
Implementations§
source§impl PublicKeyList
impl PublicKeyList
sourcepub fn next_marker(&self) -> Option<&str>
pub fn next_marker(&self) -> Option<&str>
If there are more elements to be listed, this element is present and contains the value that you can use for the Marker request parameter to continue listing your public keys where you left off.
sourcepub fn max_items(&self) -> Option<i32>
pub fn max_items(&self) -> Option<i32>
The maximum number of public keys you want in the response.
sourcepub fn items(&self) -> Option<&[PublicKeySummary]>
pub fn items(&self) -> Option<&[PublicKeySummary]>
A list of public keys.
source§impl PublicKeyList
impl PublicKeyList
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PublicKeyList.
Examples found in repository?
src/xml_deser.rs (line 8810)
8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870
pub fn deser_structure_crate_model_public_key_list(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PublicKeyList, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PublicKeyList::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("NextMarker") /* NextMarker com.amazonaws.cloudfront#PublicKeyList$NextMarker */ => {
let var_321 =
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_321);
}
,
s if s.matches("MaxItems") /* MaxItems com.amazonaws.cloudfront#PublicKeyList$MaxItems */ => {
let var_322 =
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_322);
}
,
s if s.matches("Quantity") /* Quantity com.amazonaws.cloudfront#PublicKeyList$Quantity */ => {
let var_323 =
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_323);
}
,
s if s.matches("Items") /* Items com.amazonaws.cloudfront#PublicKeyList$Items */ => {
let var_324 =
Some(
crate::xml_deser::deser_list_com_amazonaws_cloudfront_public_key_summary_list(&mut tag)
?
)
;
builder = builder.set_items(var_324);
}
,
_ => {}
}
}
Ok(builder.build())
}Trait Implementations§
source§impl Clone for PublicKeyList
impl Clone for PublicKeyList
source§fn clone(&self) -> PublicKeyList
fn clone(&self) -> PublicKeyList
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