pub struct ProtectedRouteProps {
pub children: Children,
pub admin_page: bool,
}Expand description
Properties for the ProtectedRoute component.
§Fields
children: The child components that this protected route will render if access is granted.admin_page: A boolean flag indicating whether this route requires administrator privileges. Iftrue, the user must be authenticated AND be an administrator to access thechildren.
Fields§
§children: Children§admin_page: boolTrait Implementations§
Source§impl PartialEq for ProtectedRouteProps
impl PartialEq for ProtectedRouteProps
Source§impl Properties for ProtectedRouteProps
impl Properties for ProtectedRouteProps
impl StructuralPartialEq for ProtectedRouteProps
Auto Trait Implementations§
impl Freeze for ProtectedRouteProps
impl !RefUnwindSafe for ProtectedRouteProps
impl !Send for ProtectedRouteProps
impl !Sync for ProtectedRouteProps
impl Unpin for ProtectedRouteProps
impl !UnwindSafe for ProtectedRouteProps
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.