pub struct Hyperlink {
pub action: HyperlinkAction,
pub tooltip: Option<String>,
pub highlight_click: bool,
pub r_id: Option<String>,
}Expand description
Hyperlink definition
Fields§
§action: HyperlinkActionThe action to perform when clicked
tooltip: Option<String>Tooltip text shown on hover
highlight_click: boolHighlight click (visual feedback)
r_id: Option<String>Relationship ID (set during XML generation)
Implementations§
Source§impl Hyperlink
impl Hyperlink
Sourcepub fn new(action: HyperlinkAction) -> Self
pub fn new(action: HyperlinkAction) -> Self
Create a new hyperlink
Sourcepub fn with_tooltip(self, tooltip: &str) -> Self
pub fn with_tooltip(self, tooltip: &str) -> Self
Set tooltip
Sourcepub fn with_highlight_click(self, highlight: bool) -> Self
pub fn with_highlight_click(self, highlight: bool) -> Self
Set highlight click
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hyperlink
impl RefUnwindSafe for Hyperlink
impl Send for Hyperlink
impl Sync for Hyperlink
impl Unpin for Hyperlink
impl UnwindSafe for Hyperlink
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