Struct aws_sdk_s3::model::IndexDocument
source · #[non_exhaustive]pub struct IndexDocument { /* private fields */ }
Expand description
Container for the Suffix
element.
Implementations§
source§impl IndexDocument
impl IndexDocument
sourcepub fn suffix(&self) -> Option<&str>
pub fn suffix(&self) -> Option<&str>
A suffix that is appended to a request that is for a directory on the website endpoint (for example,if the suffix is index.html and you make a request to samplebucket/images/ the data that is returned will be for the object with the key name images/index.html) The suffix must not be empty and must not include a slash character.
Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
source§impl IndexDocument
impl IndexDocument
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IndexDocument
.
Examples found in repository?
src/xml_deser.rs (line 3632)
3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652
pub fn deser_structure_crate_model_index_document(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IndexDocument, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IndexDocument::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Suffix") /* Suffix com.amazonaws.s3#IndexDocument$Suffix */ => {
let var_199 =
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_suffix(var_199);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for IndexDocument
impl Clone for IndexDocument
source§fn clone(&self) -> IndexDocument
fn clone(&self) -> IndexDocument
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