pub enum JobLevel {
Staff,
Senior,
Lead,
Supervisor,
Manager,
Director,
VicePresident,
Executive,
}Expand description
Employee job level in the organization hierarchy.
Variants§
Staff
Individual contributor
Senior
Senior individual contributor
Lead
Lead/principal
Supervisor
First-line manager
Manager
Middle management
Director
Senior manager / director
VicePresident
VP level
Executive
C-level executive
Implementations§
Source§impl JobLevel
impl JobLevel
Sourcepub fn management_level(&self) -> u8
pub fn management_level(&self) -> u8
Get the management level (0 = IC, higher = more senior).
Sourcepub fn is_manager(&self) -> bool
pub fn is_manager(&self) -> bool
Check if this is a management position.
Sourcepub fn typical_direct_reports(&self) -> (u16, u16)
pub fn typical_direct_reports(&self) -> (u16, u16)
Get typical direct reports range.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobLevel
impl<'de> Deserialize<'de> for JobLevel
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
Source§impl Ord for JobLevel
impl Ord for JobLevel
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for JobLevel
impl PartialOrd for JobLevel
impl Copy for JobLevel
impl Eq for JobLevel
impl StructuralPartialEq for JobLevel
Auto Trait Implementations§
impl Freeze for JobLevel
impl RefUnwindSafe for JobLevel
impl Send for JobLevel
impl Sync for JobLevel
impl Unpin for JobLevel
impl UnsafeUnpin for JobLevel
impl UnwindSafe for JobLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.