pub enum HyperlinkAction {
Url(String),
Slide(u32),
FirstSlide,
LastSlide,
NextSlide,
PreviousSlide,
EndShow,
Email {
address: String,
subject: Option<String>,
},
File(String),
}Expand description
Hyperlink action types
Variants§
Url(String)
Link to external URL
Slide(u32)
Link to another slide in the presentation
FirstSlide
Link to first slide
LastSlide
Link to last slide
NextSlide
Link to next slide
PreviousSlide
Link to previous slide
EndShow
Link to end show
Link to email address
File(String)
Link to file
Implementations§
Source§impl HyperlinkAction
impl HyperlinkAction
Sourcepub fn email_with_subject(address: &str, subject: &str) -> Self
pub fn email_with_subject(address: &str, subject: &str) -> Self
Create email hyperlink with subject
Sourcepub fn relationship_target(&self) -> String
pub fn relationship_target(&self) -> String
Get the relationship target for this action
Sourcepub fn is_external(&self) -> bool
pub fn is_external(&self) -> bool
Check if this is an external link
Sourcepub fn action_type(&self) -> Option<&'static str>
pub fn action_type(&self) -> Option<&'static str>
Get the action type for internal links
Trait Implementations§
Source§impl Clone for HyperlinkAction
impl Clone for HyperlinkAction
Source§fn clone(&self) -> HyperlinkAction
fn clone(&self) -> HyperlinkAction
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 HyperlinkAction
impl Debug for HyperlinkAction
Source§impl PartialEq for HyperlinkAction
impl PartialEq for HyperlinkAction
impl Eq for HyperlinkAction
impl StructuralPartialEq for HyperlinkAction
Auto Trait Implementations§
impl Freeze for HyperlinkAction
impl RefUnwindSafe for HyperlinkAction
impl Send for HyperlinkAction
impl Sync for HyperlinkAction
impl Unpin for HyperlinkAction
impl UnwindSafe for HyperlinkAction
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> 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.