Struct telescope::templates::navbar::Navbar [−][src]
pub struct Navbar {
is_admin: bool,
is_coordinator: bool,
is_mentor: bool,
is_student: bool,
user_id: Option<Uuid>,
creating_account: bool,
req_path: String,
}
Expand description
The values used for rendering the navbar template at the top of every page.
Fields
is_admin: bool
If the currently signed in user is an admin.
is_coordinator: bool
If the currently signed in user is a coordinator.
is_mentor: bool
If the currently signed in user is a mentor.
is_student: bool
If the currently signed in user is a student.
user_id: Option<Uuid>
The user ID of the currently signed in user.
creating_account: bool
If the viewer is creating an account.
req_path: String
The path of the request to mark a navbar item as active or not.
Implementations
Create a navbar for a viewer without an account. This is the default navbar.
Create a navbar and fill appropriately based on request parameters.
Trait Implementations
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 RefUnwindSafe for Navbar
impl UnwindSafe for Navbar
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more