Struct diesel::row::PartialRow

source ·
pub struct PartialRow<'a, R> { /* private fields */ }
Available on crate feature i-implement-a-third-party-backend-and-opt-into-breaking-changes only.
Expand description

A row type that wraps an inner row

This type only allows to access fields of the inner row, whose index is part of range. This type is used by diesel internally to implement FromStaticSqlRow.

Indexing via usize starts with 0 for this row type. The index is then shifted by self.range.start to match the corresponding field in the underlying row.

Implementations§

Create a new PartialRow instance based on an inner row and a range of field that should be part of the constructed wrapper.

See the documentation of PartialRow for details.

Trait Implementations§

Formats the value using the given formatter. Read more
Return type of PartialRow Read more
Get the number of fields in the current row
Get the field with the provided index from the row. Read more
Returns a wrapping row that allows only to access fields, where the index is part of the provided range.
Get a deserialized value with the provided index from the row.
Available on crate feature i-implement-a-third-party-backend-and-opt-into-breaking-changes only.
Field type returned by a Row implementation Read more
Get the numeric index inside the current row for the provided index value
Get the numeric index inside the current row for the provided index value

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.

Convert self to an expression for Diesel’s query builder. Read more
Convert &self to an expression for Diesel’s query builder. Read more
Retrieve and deserialize a single value from the query 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.