Struct aws_sdk_s3::types::ErrorDocument
source · #[non_exhaustive]pub struct ErrorDocument {
pub key: String,
}
Expand description
The error information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.key: String
The object key name to use when a 4XX class error occurs.
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.
Implementations§
source§impl ErrorDocument
impl ErrorDocument
sourcepub fn key(&self) -> &str
pub fn key(&self) -> &str
The object key name to use when a 4XX class error occurs.
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 ErrorDocument
impl ErrorDocument
sourcepub fn builder() -> ErrorDocumentBuilder
pub fn builder() -> ErrorDocumentBuilder
Creates a new builder-style object to manufacture ErrorDocument
.
Trait Implementations§
source§impl Clone for ErrorDocument
impl Clone for ErrorDocument
source§fn clone(&self) -> ErrorDocument
fn clone(&self) -> ErrorDocument
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 moresource§impl Debug for ErrorDocument
impl Debug for ErrorDocument
source§impl PartialEq for ErrorDocument
impl PartialEq for ErrorDocument
impl StructuralPartialEq for ErrorDocument
Auto Trait Implementations§
impl Freeze for ErrorDocument
impl RefUnwindSafe for ErrorDocument
impl Send for ErrorDocument
impl Sync for ErrorDocument
impl Unpin for ErrorDocument
impl UnwindSafe for ErrorDocument
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.