pub struct ChimesUserAuthService<SystemUser> {
pub system_user: Option<SystemUser>,
}
Fields§
§system_user: Option<SystemUser>
Trait Implementations§
Source§impl ChimesAuthService<SystemUser<ChimesUserInfo>> for ChimesUserAuthService<SystemUser<ChimesUserInfo>>
impl ChimesAuthService<SystemUser<ChimesUserInfo>> for ChimesUserAuthService<SystemUser<ChimesUserInfo>>
type Future = Pin<Box<dyn Future<Output = Option<SystemUser<ChimesUserInfo>>>>>
Source§fn permit(
&self,
ust: &Option<SystemUser<ChimesUserInfo>>,
req_method: &String,
url_pattern: &String,
) -> Self::Future
fn permit( &self, ust: &Option<SystemUser<ChimesUserInfo>>, req_method: &String, url_pattern: &String, ) -> Self::Future
检查用户是否能够通过指定的URL
根据系统的配置来确定是否能够通过这个URL请求 Read more
Source§impl<SystemUser: Clone> Clone for ChimesUserAuthService<SystemUser>
impl<SystemUser: Clone> Clone for ChimesUserAuthService<SystemUser>
Source§fn clone(&self) -> ChimesUserAuthService<SystemUser>
fn clone(&self) -> ChimesUserAuthService<SystemUser>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<SystemUser> Freeze for ChimesUserAuthService<SystemUser>where
SystemUser: Freeze,
impl<SystemUser> RefUnwindSafe for ChimesUserAuthService<SystemUser>where
SystemUser: RefUnwindSafe,
impl<SystemUser> Send for ChimesUserAuthService<SystemUser>where
SystemUser: Send,
impl<SystemUser> Sync for ChimesUserAuthService<SystemUser>where
SystemUser: Sync,
impl<SystemUser> Unpin for ChimesUserAuthService<SystemUser>where
SystemUser: Unpin,
impl<SystemUser> UnwindSafe for ChimesUserAuthService<SystemUser>where
SystemUser: UnwindSafe,
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