pub struct ViewNavigationContext {
pub breadcrumbs: Vec<ViewBreadcrumb>,
pub target_component: Option<String>,
pub target_vulnerability: Option<String>,
}Expand description
Navigation context for cross-view navigation and breadcrumbs in view mode.
Fields§
Breadcrumb trail for back navigation
target_component: Option<String>Target component name to navigate to (for vuln → component navigation)
target_vulnerability: Option<String>Target vulnerability ID to navigate to (for component → vuln navigation)
Implementations§
pub const fn new() -> Self
Push a new breadcrumb onto the trail
Pop the last breadcrumb and return it (for back navigation)
Clear all breadcrumbs (on explicit tab switch)
Sourcepub fn has_history(&self) -> bool
pub fn has_history(&self) -> bool
Check if we have navigation history
Get the current breadcrumb trail as a string
Sourcepub fn clear_targets(&mut self)
pub fn clear_targets(&mut self)
Clear navigation targets
Trait Implementations§
Source§fn clone(&self) -> ViewNavigationContext
fn clone(&self) -> ViewNavigationContext
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§fn default() -> ViewNavigationContext
fn default() -> ViewNavigationContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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<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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more