Enum cdrs::frame::frame_result::ResResultBody[][src]

pub enum ResResultBody {
    Void(BodyResResultVoid),
    Rows(BodyResResultRows),
    SetKeyspace(BodyResResultSetKeyspace),
    Prepared(BodyResResultPrepared),
    SchemaChange(SchemaChange),
}

ResponseBody is a generalized enum that represents all types of responses. Each of enum option wraps related body type.

Variants

Void response body. It's an empty stuct.

Rows response body. It represents a body of response which contains rows.

Set keyspace body. It represents a body of set_keyspace query and usually contains a name of just set namespace.

Prepared response body.

Schema change body

Methods

impl ResResultBody
[src]

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 othewise

It unwraps body and returns BodyResResultPrepared which contains an exact result of PREPARE query.

It unwraps body and returns BodyResResultSetKeyspace which contains an exact result of use keyspace query.

Trait Implementations

impl Debug for ResResultBody
[src]

Formats the value using the given formatter. Read more

impl FromCursor for ResResultBody
[src]

It should return an implementor from an io::Cursor over an array of bytes.

Auto Trait Implementations