pub struct TableHandle { /* private fields */ }Expand description
绑定数据库连接池后的表句柄。
Implementations§
Source§impl TableHandle
impl TableHandle
Sourcepub fn definition(&self) -> &TableDefinition
pub fn definition(&self) -> &TableDefinition
返回不可变表定义。
Sourcepub fn query<I, S>(&self, roles: I) -> TableQuery
pub fn query<I, S>(&self, roles: I) -> TableQuery
创建带字段权限保护的查询构建器。
Trait Implementations§
Source§impl Clone for TableHandle
impl Clone for TableHandle
Auto Trait Implementations§
impl !RefUnwindSafe for TableHandle
impl !UnwindSafe for TableHandle
impl Forget for TableHandle
impl Freeze for TableHandle
impl Move for TableHandle
impl Send for TableHandle
impl Sync for TableHandle
impl Unpin for TableHandle
impl UnsafeUnpin for TableHandle
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