Enum cassandra_protocol::frame::frame_result::ResResultBody [−][src]
pub enum ResResultBody {
Void,
Rows(BodyResResultRows),
SetKeyspace(BodyResResultSetKeyspace),
Prepared(BodyResResultPrepared),
SchemaChange(SchemaChange),
}
Expand description
ResponseBody
is a generalized enum that represents all types of responses. Each of enum
option wraps related body type.
Variants
Void
Void response body. It’s an empty struct.
Rows(BodyResResultRows)
Tuple Fields
Rows response body. It represents a body of response which contains rows.
SetKeyspace(BodyResResultSetKeyspace)
Tuple Fields
Set keyspace body. It represents a body of set_keyspace query and usually contains a name of just set namespace.
Prepared(BodyResResultPrepared)
Tuple Fields
Prepared response body.
SchemaChange(SchemaChange)
Tuple Fields
0: SchemaChange
Schema change body
Implementations
It converts body into Vec<Row>
if body’s type is Row
and returns None
otherwise.
It returns Some
rows metadata if frame result is of type rows and None
otherwise
Unwraps body and returns BodyResResultPrepared which contains an exact result of PREPARE query.
Unwraps body and returns BodyResResultSetKeyspace which contains an exact result of use keyspace query.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ResResultBody
impl Send for ResResultBody
impl Sync for ResResultBody
impl Unpin for ResResultBody
impl UnwindSafe for ResResultBody
Blanket Implementations
Mutably borrows from an owned value. Read more