pub struct SQLRecordFields<'a> { /* private fields */ }Expand description
Record values and declared field identities from one pinned catalog generation. Constructing the view does not read or copy any field value.
Implementations§
Source§impl<'a> SQLRecordFields<'a>
impl<'a> SQLRecordFields<'a>
pub fn new( value: &'a Value, catalog: Option<&dyn SQLValueCatalog>, ) -> Result<Self, SQLError>
pub fn value(&self, index: usize) -> Option<&'a Value>
pub fn declared_field_type(&self, index: usize) -> Option<&ColumnType>
Sourcepub fn field_collation_oid(&self, index: usize) -> Option<u32>
pub fn field_collation_oid(&self, index: usize) -> Option<u32>
Observe a retained field selection without evaluating the field. Named fields use the pinned descriptor; anonymous fields distinguish explicit zero from absent legacy metadata.
pub fn field_type_oid(&self, index: usize) -> Option<u32>
Auto Trait Implementations§
impl<'a> Freeze for SQLRecordFields<'a>
impl<'a> RefUnwindSafe for SQLRecordFields<'a>
impl<'a> Send for SQLRecordFields<'a>
impl<'a> Sync for SQLRecordFields<'a>
impl<'a> Unpin for SQLRecordFields<'a>
impl<'a> UnsafeUnpin for SQLRecordFields<'a>
impl<'a> UnwindSafe for SQLRecordFields<'a>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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