pub struct RouteGuard {
pub requires_auth: bool,
pub required_roles: Option<Vec<String>>,
pub redirect_on_fail: Option<String>,
}Fields§
§requires_auth: bool§required_roles: Option<Vec<String>>§redirect_on_fail: Option<String>Trait Implementations§
Source§impl Clone for RouteGuard
impl Clone for RouteGuard
Source§impl Debug for RouteGuard
impl Debug for RouteGuard
Source§impl<'de> Deserialize<'de> for RouteGuard
impl<'de> Deserialize<'de> for RouteGuard
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for RouteGuard
impl Freeze for RouteGuard
impl Move for RouteGuard
impl RefUnwindSafe for RouteGuard
impl Send for RouteGuard
impl Sync for RouteGuard
impl Unpin for RouteGuard
impl UnsafeUnpin for RouteGuard
impl UnwindSafe for RouteGuard
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