more doc for RequestIdentity

This commit is contained in:
Bob 2019-06-11 20:36:19 +08:00
parent 63c670eddf
commit ba2da694d1
1 changed files with 2 additions and 1 deletions

View File

@ -133,7 +133,8 @@ struct IdentityItem {
changed: bool, changed: bool,
} }
/// Helper trait that allows to get Identity /// Helper trait that allows to get Identity.
/// It could be used in middleware but identity policy must be set before any other middleware that needs identity
pub trait RequestIdentity { pub trait RequestIdentity {
fn get_identity(&self) -> Option<String>; fn get_identity(&self) -> Option<String>;
} }