pub struct SecurityConfigRepository {
pub base: BaseRepository<SecurityConfig>,
}Expand description
安全配置Repository
Fields§
§base: BaseRepository<SecurityConfig>Implementations§
Source§impl SecurityConfigRepository
impl SecurityConfigRepository
pub fn new(query_executor: Box<dyn QueryExecutor>) -> Self
Sourcepub async fn get_current(
&self,
context: &QueryContext,
) -> DatabaseResult<Option<SecurityConfig>>
pub async fn get_current( &self, context: &QueryContext, ) -> DatabaseResult<Option<SecurityConfig>>
获取当前安全配置
Auto Trait Implementations§
impl Freeze for SecurityConfigRepository
impl !RefUnwindSafe for SecurityConfigRepository
impl Send for SecurityConfigRepository
impl Sync for SecurityConfigRepository
impl Unpin for SecurityConfigRepository
impl !UnwindSafe for SecurityConfigRepository
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> 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