pub struct LoginIdExtractor(pub Option<String>);Expand description
中文: 登录 ID 提取器,映射为 Option
Tuple Fields§
§0: Option<String>Implementations§
Source§impl LoginIdExtractor
impl LoginIdExtractor
Sourcepub fn from_request(req: &HttpRequest) -> Self
pub fn from_request(req: &HttpRequest) -> Self
中文: 若中间件已经写入 login_id,则返回 Some;否则 None English: Returns Some when middleware stored login_id; otherwise None
Trait Implementations§
Source§impl Clone for LoginIdExtractor
impl Clone for LoginIdExtractor
Source§fn clone(&self) -> LoginIdExtractor
fn clone(&self) -> LoginIdExtractor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LoginIdExtractor
impl RefUnwindSafe for LoginIdExtractor
impl Send for LoginIdExtractor
impl Sync for LoginIdExtractor
impl Unpin for LoginIdExtractor
impl UnwindSafe for LoginIdExtractor
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)