FbRow

Struct FbRow 

Source
pub struct FbRow { /* private fields */ }

Implementations§

Source§

impl FbRow

Source

pub fn new(row: RsRow) -> Self

Trait Implementations§

Source§

impl<'a> Row<'a, Fb> for FbRow

Source§

type InnerPartialRow = FbRow

Return type of PartialRow Read more
Source§

fn get<'b, I>(&'b self, idx: I) -> Option<FieldRet<'b, Self, Fb>>
where Self: RowIndex<I>, 'a: 'b,

Get the field with the provided index from the row. Read more
Source§

fn field_count(&self) -> usize

Get the number of fields in the current row
Source§

fn partial_row( &self, range: Range<usize>, ) -> PartialRow<'_, Self::InnerPartialRow>

Returns a wrapping row that allows only to access fields, where the index is part of the provided range.
Source§

fn get_value<ST, T, I>(&self, idx: I) -> Result<T, Box<dyn Error + Send + Sync>>
where Self: RowIndex<I>, T: FromSql<ST, DB>,

Get a deserialized value with the provided index from the row.
Source§

impl<'b> RowGatWorkaround<'b, Fb> for FbRow

Source§

type Field = FbField<'b>

Field type returned by a Row implementation Read more
Source§

impl<'a> RowIndex<&'a str> for FbRow

Source§

fn idx(&self, field_name: &'a str) -> Option<usize>

Get the numeric index inside the current row for the provided index value
Source§

impl RowIndex<usize> for FbRow

Source§

fn idx(&self, idx: usize) -> Option<usize>

Get the numeric index inside the current row for the provided index value

Auto Trait Implementations§

§

impl Freeze for FbRow

§

impl RefUnwindSafe for FbRow

§

impl Send for FbRow

§

impl Sync for FbRow

§

impl Unpin for FbRow

§

impl UnwindSafe for FbRow

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<'a, R, DB> NamedRow<'a, DB> for R
where R: Row<'a, DB>, DB: Backend,

Source§

fn get<ST, T>( &self, column_name: &str, ) -> Result<T, Box<dyn Error + Send + Sync>>
where T: FromSql<ST, DB>,

Retrieve and deserialize a single value from the query Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,