pub struct RowData { /* private fields */ }Expand description
行数据(列名 -> Value)
Implementations§
Source§impl RowData
impl RowData
Sourcepub fn get_with_prefix(&self, prefix: &str, column: &str) -> Option<&Value>
pub fn get_with_prefix(&self, prefix: &str, column: &str) -> Option<&Value>
按前缀 + 列名取值(用于 JOIN 列前缀隔离)
例如:prefix=“dept_”, column=“id” 将查找 “dept_id”
Sourcepub fn is_not_null(&self, column: &str) -> bool
pub fn is_not_null(&self, column: &str) -> bool
判断列是否存在且非 NULL
Sourcepub fn column_names(&self) -> Vec<String>
pub fn column_names(&self) -> Vec<String>
所有列名
Sourcepub fn sorted_columns(&self) -> Vec<(&String, &Value)>
pub fn sorted_columns(&self) -> Vec<(&String, &Value)>
获取所有列的引用(按列名排序)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RowData
impl RefUnwindSafe for RowData
impl Send for RowData
impl Sync for RowData
impl Unpin for RowData
impl UnsafeUnpin for RowData
impl UnwindSafe for RowData
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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