Struct cassandra_protocol::frame::message_error::ErrorBody
source · pub struct ErrorBody {
pub message: String,
pub ty: ErrorType,
}
Expand description
CDRS error which could be returned by Cassandra server as a response. As in the specification,
it contains an error code and an error message. Apart of those depending of type of error,
it could contain additional information represented by additional_info
property.
Fields§
§message: String
Error message.
ty: ErrorType
The type of error, possibly including type specific additional information.
Implementations§
Trait Implementations§
source§impl FromCursor for ErrorBody
impl FromCursor for ErrorBody
source§impl PartialEq for ErrorBody
impl PartialEq for ErrorBody
impl Eq for ErrorBody
impl StructuralPartialEq for ErrorBody
Auto Trait Implementations§
impl Freeze for ErrorBody
impl RefUnwindSafe for ErrorBody
impl Send for ErrorBody
impl Sync for ErrorBody
impl Unpin for ErrorBody
impl UnwindSafe for ErrorBody
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> 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 more