Struct hdbconnect::HdbResponse

source ·
pub struct HdbResponse { /* private fields */ }
Expand description

Represents all possible non-error responses to a database command.

Technically, it is a list of single database response values, each of which can be

  • a resultset of a query
  • a list of numbers of affected rows
  • values of output parameters of a procedure call
  • just an indication that a db call was successful
  • a list of XaTransactionIds

Typically, i.e. in all simple cases, you just have a single database response value, and can use the respective into_ message to convert the HdbResponse directly into this single value, whose type is predetermined by the nature of the database call.

Procedure calls e.g. belong to the more complex cases where the database response can consist of e.g. multiple result sets. In this case, you need to evaluate the HdbResponse using the get_ methods.

Implementations§

Returns the number of contained single return values.

Turns itself into a single resultset.

If this cannot be done without loss of information, an error is returned.

Turns itself into a Vector of numbers (each number representing a number of affected rows).

If this cannot be done without loss of information, an error is returned.

Turns itself into a Vector of numbers (each number representing a number of affected rows).

If this cannot be done without loss of information, an error is returned.

Turns itself into (), if the statement had returned successfully.

If this cannot be done without loss of information, an error is returned.

Turns itself into a single return value, if there is exactly one.

Returns () if a successful execution was signaled by the database explicitly, or an error otherwise.

Returns the next ResultSet, or an error if there is none.

Returns the next ParameterDescriptor, or an error if there is none.

Returns the next set of affected rows counters, or an error if there is none.

Returns the next OutputParameters, or an error if there is none.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.