pub struct OwnedRow { /* private fields */ }Expand description
A row copied out of a driver, addressable by column name.
Implementations§
Source§impl OwnedRow
impl OwnedRow
Sourcepub fn snapshot(row: &dyn Row, columns: &[ColumnRequest]) -> Result<Self>
pub fn snapshot(row: &dyn Row, columns: &[ColumnRequest]) -> Result<Self>
Copy the requested columns out of a driver row.
Each column is read through the getter its ColumnType names, which
is the same dispatch Rainier ORM’s own decoder performs — so a value that
round-trips through here decodes identically to one read directly.
Trait Implementations§
Source§impl Row for OwnedRow
impl Row for OwnedRow
fn get_bool(&self, col: &str) -> Result<Option<bool>>
fn get_i32(&self, col: &str) -> Result<Option<i32>>
fn get_i64(&self, col: &str) -> Result<Option<i64>>
fn get_u32(&self, col: &str) -> Result<Option<u32>>
fn get_u64(&self, col: &str) -> Result<Option<u64>>
fn get_f64(&self, col: &str) -> Result<Option<f64>>
fn get_string(&self, col: &str) -> Result<Option<String>>
fn get_bytes(&self, col: &str) -> Result<Option<Vec<u8>>>
fn get_datetime(&self, col: &str) -> Result<Option<DateTime<Utc>>>
fn get_naive_date(&self, col: &str) -> Result<Option<NaiveDate>>
impl StructuralPartialEq for OwnedRow
Auto Trait Implementations§
impl Freeze for OwnedRow
impl RefUnwindSafe for OwnedRow
impl Send for OwnedRow
impl Sync for OwnedRow
impl Unpin for OwnedRow
impl UnsafeUnpin for OwnedRow
impl UnwindSafe for OwnedRow
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> Event for T
impl<T> Event for T
Source§fn event_name() -> &'static strwhere
Self: Sized,
fn event_name() -> &'static strwhere
Self: Sized,
A human-readable name, used by wildcard listeners and log output.
Always the Rust type path; see the trait docs.