Struct aws_sdk_cloudfront::model::FunctionSummary
source · #[non_exhaustive]pub struct FunctionSummary { /* private fields */ }
Expand description
Contains configuration information and metadata about a CloudFront function.
Implementations§
source§impl FunctionSummary
impl FunctionSummary
sourcepub fn function_config(&self) -> Option<&FunctionConfig>
pub fn function_config(&self) -> Option<&FunctionConfig>
Contains configuration information about a CloudFront function.
sourcepub fn function_metadata(&self) -> Option<&FunctionMetadata>
pub fn function_metadata(&self) -> Option<&FunctionMetadata>
Contains metadata about a CloudFront function.
source§impl FunctionSummary
impl FunctionSummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture FunctionSummary
.
Examples found in repository?
src/xml_deser.rs (line 6475)
6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528
pub fn deser_structure_crate_model_function_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::FunctionSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::FunctionSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Name") /* Name com.amazonaws.cloudfront#FunctionSummary$Name */ => {
let var_169 =
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_name(var_169);
}
,
s if s.matches("Status") /* Status com.amazonaws.cloudfront#FunctionSummary$Status */ => {
let var_170 =
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_status(var_170);
}
,
s if s.matches("FunctionConfig") /* FunctionConfig com.amazonaws.cloudfront#FunctionSummary$FunctionConfig */ => {
let var_171 =
Some(
crate::xml_deser::deser_structure_crate_model_function_config(&mut tag)
?
)
;
builder = builder.set_function_config(var_171);
}
,
s if s.matches("FunctionMetadata") /* FunctionMetadata com.amazonaws.cloudfront#FunctionSummary$FunctionMetadata */ => {
let var_172 =
Some(
crate::xml_deser::deser_structure_crate_model_function_metadata(&mut tag)
?
)
;
builder = builder.set_function_metadata(var_172);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for FunctionSummary
impl Clone for FunctionSummary
source§fn clone(&self) -> FunctionSummary
fn clone(&self) -> FunctionSummary
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