pub struct HierarchyState {
pub active_levels: HashSet<InstructionLevel>,
pub highest_authority: Option<InstructionLevel>,
pub override_attempts: u64,
pub trust_score: f64,
}Expand description
Hierarchy state (session-local).
Fields§
§active_levels: HashSet<InstructionLevel>§override_attempts: u64§trust_score: f64Trait Implementations§
Source§impl Clone for HierarchyState
impl Clone for HierarchyState
Source§fn clone(&self) -> HierarchyState
fn clone(&self) -> HierarchyState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HierarchyState
impl Debug for HierarchyState
Source§impl Default for HierarchyState
impl Default for HierarchyState
Source§fn default() -> HierarchyState
fn default() -> HierarchyState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HierarchyState
impl RefUnwindSafe for HierarchyState
impl Send for HierarchyState
impl Sync for HierarchyState
impl Unpin for HierarchyState
impl UnwindSafe for HierarchyState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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