#[non_exhaustive]pub struct ErrorDocumentBuilder { /* private fields */ }
Expand description
A builder for ErrorDocument
.
Implementations§
source§impl ErrorDocumentBuilder
impl ErrorDocumentBuilder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
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.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<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.
sourcepub fn build(self) -> Result<ErrorDocument, BuildError>
pub fn build(self) -> Result<ErrorDocument, BuildError>
Consumes the builder and constructs a ErrorDocument
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ErrorDocumentBuilder
impl Clone for ErrorDocumentBuilder
source§fn clone(&self) -> ErrorDocumentBuilder
fn clone(&self) -> ErrorDocumentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ErrorDocumentBuilder
impl Debug for ErrorDocumentBuilder
source§impl Default for ErrorDocumentBuilder
impl Default for ErrorDocumentBuilder
source§fn default() -> ErrorDocumentBuilder
fn default() -> ErrorDocumentBuilder
source§impl PartialEq for ErrorDocumentBuilder
impl PartialEq for ErrorDocumentBuilder
impl StructuralPartialEq for ErrorDocumentBuilder
Auto Trait Implementations§
impl Freeze for ErrorDocumentBuilder
impl RefUnwindSafe for ErrorDocumentBuilder
impl Send for ErrorDocumentBuilder
impl Sync for ErrorDocumentBuilder
impl Unpin for ErrorDocumentBuilder
impl UnwindSafe for ErrorDocumentBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more