Struct aws_sdk_transfer::error::BuildError  
source · pub struct BuildError { /* private fields */ }Expand description
An error occurred attempting to build an Operation from an input
These are almost always due to user error caused by limitations of specific fields due to protocol serialization (e.g. fields that can only be a subset ASCII because they are serialized as the name of an HTTP header)
Implementations§
source§impl BuildError
 
impl BuildError
sourcepub fn missing_field(field: &'static str, details: &'static str) -> BuildError
 
pub fn missing_field(field: &'static str, details: &'static str) -> BuildError
Construct a build error for a missing field
sourcepub fn invalid_field(
    field: &'static str,
    details: impl Into<String>,
) -> BuildError
 
pub fn invalid_field( field: &'static str, details: impl Into<String>, ) -> BuildError
Construct a build error for an invalid field
Trait Implementations§
source§impl Debug for BuildError
 
impl Debug for BuildError
source§impl Display for BuildError
 
impl Display for BuildError
source§impl Error for BuildError
 
impl Error for BuildError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
 
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
 
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BuildError> for Error
 
impl From<BuildError> for Error
source§fn from(value: BuildError) -> Self
 
fn from(value: BuildError) -> Self
Converts to this type from the input type.
source§impl<E, R> From<BuildError> for SdkError<E, R>
 
impl<E, R> From<BuildError> for SdkError<E, R>
source§fn from(value: BuildError) -> SdkError<E, R>
 
fn from(value: BuildError) -> SdkError<E, R>
Converts to this type from the input type.
source§impl From<DateTimeFormatError> for BuildError
 
impl From<DateTimeFormatError> for BuildError
source§fn from(err: DateTimeFormatError) -> BuildError
 
fn from(err: DateTimeFormatError) -> BuildError
Converts to this type from the input type.
source§impl From<SerializationError> for BuildError
 
impl From<SerializationError> for BuildError
source§fn from(err: SerializationError) -> BuildError
 
fn from(err: SerializationError) -> BuildError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuildError
impl !RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl !UnwindSafe for BuildError
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> 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>
Converts 
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>
Converts 
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 moreCreates a shared type from an unshared type.