pub struct Hyperlink {
pub relationship_id: Option<String>,
pub tooltip: Option<String>,
}Expand description
A clickable hyperlink (<a:hlinkClick>, CT_Hyperlink).
Unlike word_ooxml::Hyperlink (which stores the actual target URL, or bookmark anchor, and lets
its own writer create the relationship at write time), this crate has no access to a
host-specific relationship accumulator from within a plain data model or from
crate::writer::write_text_run — resolving r:id against an actual OPC package/relationship
set is host-specific, the same posture already established for BlipFill::relationship_id
(see that field’s own doc comment for the full rationale). relationship_id here is therefore
an already-resolved relationship id (e.g. "rId4"), which the host crate must obtain by
registering an external relationship (target mode external, pointing at the real URL) itself
before constructing this value — see powerpoint-ooxml::AutoShape::hyperlink for the
shape-level equivalent, which — being entirely host-owned — does take a plain URL directly,
since that crate’s own writer controls relationship registration end to end for that field.
Grounded against real fixtures confirming <a:hlinkClick r:id=".."/> living directly inside
<p:cNvPr> (the shape-level placement this crate’s own writer uses) as well as inside <a:rPr>
for run-level links.
Fields§
§relationship_id: Option<String>r:id — None omits the attribute (schema-valid: CT_Hyperlink allows a bare
<a:hlinkClick/> with only action/other attributes set, though this crate has no use for
that case today).
tooltip: Option<String>tooltip — text shown in a tooltip when hovering the link.
Implementations§
Trait Implementations§
impl Eq for Hyperlink
impl StructuralPartialEq for Hyperlink
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
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
key and return true if they are equal.