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 UnsafeUnpin 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