pub struct Row { /* private fields */ }Implementations§
Source§impl Row
impl Row
pub fn from_body(body: BodyResResultRows) -> Vec<Row>
Sourcepub fn contains_column(&self, name: &str) -> bool
pub fn contains_column(&self, name: &str) -> bool
Checks if a column is present in the row.
Sourcepub fn is_empty(&self, index: usize) -> bool
pub fn is_empty(&self, index: usize) -> bool
Checks for NULL for a given column. Returns false if given column does not exist.
Sourcepub fn is_empty_by_name(&self, name: &str) -> bool
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
impl ByIndex for Row
fn by_index<R>(&self, index: usize) -> CDRSResult<Option<R>>where
Self: IntoRustByIndex<R>,
fn r_by_index<R>(&self, index: usize) -> CDRSResult<R>where
Self: IntoRustByIndex<R>,
Source§impl ByName for Row
impl ByName for Row
fn by_name<R>(&self, name: &str) -> CDRSResult<Option<R>>where
Self: IntoRustByName<R>,
fn r_by_name<R>(&self, name: &str) -> CDRSResult<R>where
Self: IntoRustByName<R>,
Source§impl IntoRustByIndex<BigInt> for Row
impl IntoRustByIndex<BigInt> for Row
fn get_by_index(&self, index: usize) -> Result<Option<BigInt>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<Blob> for Row
impl IntoRustByIndex<Blob> for Row
fn get_by_index(&self, index: usize) -> Result<Option<Blob>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<DateTime<Utc>> for Row
impl IntoRustByIndex<DateTime<Utc>> for Row
fn get_by_index(&self, index: usize) -> Result<Option<DateTime<Utc>>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<Decimal> for Row
impl IntoRustByIndex<Decimal> for Row
fn get_by_index(&self, index: usize) -> Result<Option<Decimal>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<IpAddr> for Row
impl IntoRustByIndex<IpAddr> for Row
fn get_by_index(&self, index: usize) -> Result<Option<IpAddr>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<List> for Row
impl IntoRustByIndex<List> for Row
fn get_by_index(&self, index: usize) -> Result<Option<List>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<Map> for Row
impl IntoRustByIndex<Map> for Row
fn get_by_index(&self, index: usize) -> Result<Option<Map>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<NaiveDateTime> for Row
impl IntoRustByIndex<NaiveDateTime> for Row
fn get_by_index(&self, index: usize) -> Result<Option<NaiveDateTime>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<NonZero<i16>> for Row
impl IntoRustByIndex<NonZero<i16>> for Row
fn get_by_index(&self, index: usize) -> Result<Option<NonZeroI16>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<NonZero<i32>> for Row
impl IntoRustByIndex<NonZero<i32>> for Row
fn get_by_index(&self, index: usize) -> Result<Option<NonZeroI32>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<NonZero<i64>> for Row
impl IntoRustByIndex<NonZero<i64>> for Row
fn get_by_index(&self, index: usize) -> Result<Option<NonZeroI64>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<NonZero<i8>> for Row
impl IntoRustByIndex<NonZero<i8>> for Row
fn get_by_index(&self, index: usize) -> Result<Option<NonZeroI8>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<PrimitiveDateTime> for Row
impl IntoRustByIndex<PrimitiveDateTime> for Row
fn get_by_index(&self, index: usize) -> Result<Option<PrimitiveDateTime>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<String> for Row
impl IntoRustByIndex<String> for Row
fn get_by_index(&self, index: usize) -> Result<Option<String>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<Tuple> for Row
impl IntoRustByIndex<Tuple> for Row
fn get_by_index(&self, index: usize) -> Result<Option<Tuple>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<Udt> for Row
impl IntoRustByIndex<Udt> for Row
fn get_by_index(&self, index: usize) -> Result<Option<Udt>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<Uuid> for Row
impl IntoRustByIndex<Uuid> for Row
fn get_by_index(&self, index: usize) -> Result<Option<Uuid>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<bool> for Row
impl IntoRustByIndex<bool> for Row
fn get_by_index(&self, index: usize) -> Result<Option<bool>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<f32> for Row
impl IntoRustByIndex<f32> for Row
fn get_by_index(&self, index: usize) -> Result<Option<f32>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<f64> for Row
impl IntoRustByIndex<f64> for Row
fn get_by_index(&self, index: usize) -> Result<Option<f64>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<i16> for Row
impl IntoRustByIndex<i16> for Row
fn get_by_index(&self, index: usize) -> Result<Option<i16>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<i32> for Row
impl IntoRustByIndex<i32> for Row
fn get_by_index(&self, index: usize) -> Result<Option<i32>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<i64> for Row
impl IntoRustByIndex<i64> for Row
fn get_by_index(&self, index: usize) -> Result<Option<i64>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByIndex<i8> for Row
impl IntoRustByIndex<i8> for Row
fn get_by_index(&self, index: usize) -> Result<Option<i8>>
fn get_r_by_index(&self, index: usize) -> CDRSResult<R>
Source§impl IntoRustByName<BigInt> for Row
impl IntoRustByName<BigInt> for Row
fn get_by_name(&self, name: &str) -> Result<Option<BigInt>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<Blob> for Row
impl IntoRustByName<Blob> for Row
fn get_by_name(&self, name: &str) -> Result<Option<Blob>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<DateTime<Utc>> for Row
impl IntoRustByName<DateTime<Utc>> for Row
fn get_by_name(&self, name: &str) -> Result<Option<DateTime<Utc>>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<Decimal> for Row
impl IntoRustByName<Decimal> for Row
fn get_by_name(&self, name: &str) -> Result<Option<Decimal>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<IpAddr> for Row
impl IntoRustByName<IpAddr> for Row
fn get_by_name(&self, name: &str) -> Result<Option<IpAddr>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<List> for Row
impl IntoRustByName<List> for Row
fn get_by_name(&self, name: &str) -> Result<Option<List>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<Map> for Row
impl IntoRustByName<Map> for Row
fn get_by_name(&self, name: &str) -> Result<Option<Map>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<NaiveDateTime> for Row
impl IntoRustByName<NaiveDateTime> for Row
fn get_by_name(&self, name: &str) -> Result<Option<NaiveDateTime>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<NonZero<i16>> for Row
impl IntoRustByName<NonZero<i16>> for Row
fn get_by_name(&self, name: &str) -> Result<Option<NonZeroI16>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<NonZero<i32>> for Row
impl IntoRustByName<NonZero<i32>> for Row
fn get_by_name(&self, name: &str) -> Result<Option<NonZeroI32>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<NonZero<i64>> for Row
impl IntoRustByName<NonZero<i64>> for Row
fn get_by_name(&self, name: &str) -> Result<Option<NonZeroI64>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<NonZero<i8>> for Row
impl IntoRustByName<NonZero<i8>> for Row
fn get_by_name(&self, name: &str) -> Result<Option<NonZeroI8>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<PrimitiveDateTime> for Row
impl IntoRustByName<PrimitiveDateTime> for Row
fn get_by_name(&self, name: &str) -> Result<Option<PrimitiveDateTime>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<String> for Row
impl IntoRustByName<String> for Row
fn get_by_name(&self, name: &str) -> Result<Option<String>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<Tuple> for Row
impl IntoRustByName<Tuple> for Row
fn get_by_name(&self, name: &str) -> Result<Option<Tuple>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<Udt> for Row
impl IntoRustByName<Udt> for Row
fn get_by_name(&self, name: &str) -> Result<Option<Udt>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<Uuid> for Row
impl IntoRustByName<Uuid> for Row
fn get_by_name(&self, name: &str) -> Result<Option<Uuid>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<bool> for Row
impl IntoRustByName<bool> for Row
fn get_by_name(&self, name: &str) -> Result<Option<bool>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<f32> for Row
impl IntoRustByName<f32> for Row
fn get_by_name(&self, name: &str) -> Result<Option<f32>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<f64> for Row
impl IntoRustByName<f64> for Row
fn get_by_name(&self, name: &str) -> Result<Option<f64>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<i16> for Row
impl IntoRustByName<i16> for Row
fn get_by_name(&self, name: &str) -> Result<Option<i16>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<i32> for Row
impl IntoRustByName<i32> for Row
fn get_by_name(&self, name: &str) -> Result<Option<i32>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<i64> for Row
impl IntoRustByName<i64> for Row
fn get_by_name(&self, name: &str) -> Result<Option<i64>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Source§impl IntoRustByName<i8> for Row
impl IntoRustByName<i8> for Row
fn get_by_name(&self, name: &str) -> Result<Option<i8>>
fn get_r_by_name(&self, name: &str) -> CDRSResult<R>
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more