pub struct Row { /* private fields */ }

Implementations§

source§

impl Row

source

pub fn from_body(body: BodyResResultRows) -> Vec<Row>

source

pub fn contains_column(&self, name: &str) -> bool

Checks if a column is present in the row.

source

pub fn is_empty(&self, index: usize) -> bool

Checks for NULL for a given column. Returns false if given column does not exist.

source

pub fn is_empty_by_name(&self, name: &str) -> bool

Checks for NULL for a given column. Returns false if given column does not exist.

Trait Implementations§

source§

impl ByIndex for Row

source§

fn by_index<R>(&self, index: usize) -> CDRSResult<Option<R>>where Self: IntoRustByIndex<R>,

source§

fn r_by_index<R>(&self, index: usize) -> CDRSResult<R>where Self: IntoRustByIndex<R>,

source§

impl ByName for Row

source§

fn by_name<R>(&self, name: &str) -> CDRSResult<Option<R>>where Self: IntoRustByName<R>,

source§

fn r_by_name<R>(&self, name: &str) -> CDRSResult<R>where Self: IntoRustByName<R>,

source§

impl Clone for Row

source§

fn clone(&self) -> Row

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Row

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

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

impl IntoRustByIndex<BigInt> for Row

source§

impl IntoRustByIndex<Blob> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<Blob>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<DateTime<Utc>> for Row

source§

impl IntoRustByIndex<Decimal> for Row

source§

impl IntoRustByIndex<IpAddr> for Row

source§

impl IntoRustByIndex<List> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<List>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<Map> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<Map>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<NaiveDateTime> for Row

source§

impl IntoRustByIndex<NonZeroI16> for Row

source§

impl IntoRustByIndex<NonZeroI32> for Row

source§

impl IntoRustByIndex<NonZeroI64> for Row

source§

impl IntoRustByIndex<NonZeroI8> for Row

source§

impl IntoRustByIndex<PrimitiveDateTime> for Row

source§

impl IntoRustByIndex<String> for Row

source§

impl IntoRustByIndex<Tuple> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<Tuple>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<Udt> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<Udt>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<Uuid> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<Uuid>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<bool> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<bool>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<f32> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<f32>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<f64> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<f64>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<i16> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<i16>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<i32> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<i32>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<i64> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<i64>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByIndex<i8> for Row

source§

fn get_by_index(&self, index: usize) -> Result<Option<i8>>

source§

fn get_r_by_index(&self, index: usize) -> CDRSResult<R>

source§

impl IntoRustByName<BigInt> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<BigInt>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<Blob> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<Blob>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<DateTime<Utc>> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<DateTime<Utc>>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<Decimal> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<Decimal>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<IpAddr> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<IpAddr>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<List> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<List>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<Map> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<Map>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<NaiveDateTime> for Row

source§

impl IntoRustByName<NonZeroI16> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<NonZeroI16>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<NonZeroI32> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<NonZeroI32>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<NonZeroI64> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<NonZeroI64>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<NonZeroI8> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<NonZeroI8>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<PrimitiveDateTime> for Row

source§

impl IntoRustByName<String> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<String>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<Tuple> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<Tuple>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<Udt> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<Udt>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<Uuid> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<Uuid>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<bool> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<bool>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<f32> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<f32>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<f64> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<f64>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<i16> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<i16>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<i32> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<i32>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<i64> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<i64>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

source§

impl IntoRustByName<i8> for Row

source§

fn get_by_name(&self, name: &str) -> Result<Option<i8>>

source§

fn get_r_by_name(&self, name: &str) -> CDRSResult<R>

Auto Trait Implementations§

§

impl RefUnwindSafe for Row

§

impl Send for Row

§

impl Sync for Row

§

impl Unpin for Row

§

impl UnwindSafe for Row

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.