pub struct LinkTarget {
pub document: Option<String>,
pub anchor: Option<String>,
pub label: Option<String>,
}Expand description
The site-internal destination of a Link.
A resolved target names a document, an anchor, or both (an anchor alone
means the linking document). An unresolved one has only a label, to be
looked up among the anchors of every document, e.g. by a transformer.
Fields§
§document: Option<String>Source path of the target document, relative to the source
directory with / separators.
anchor: Option<String>Anchor id within the target document.
label: Option<String>A label naming the target, not yet resolved to a document and anchor.
Trait Implementations§
Source§impl Clone for LinkTarget
impl Clone for LinkTarget
Source§impl Debug for LinkTarget
impl Debug for LinkTarget
Source§impl Default for LinkTarget
impl Default for LinkTarget
Source§impl<'de> Deserialize<'de> for LinkTarget
impl<'de> Deserialize<'de> for LinkTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LinkTarget
Source§impl PartialEq for LinkTarget
impl PartialEq for LinkTarget
Source§impl Serialize for LinkTarget
impl Serialize for LinkTarget
impl StructuralPartialEq for LinkTarget
Auto Trait Implementations§
impl Forget for LinkTarget
impl Freeze for LinkTarget
impl Move for LinkTarget
impl RefUnwindSafe for LinkTarget
impl Send for LinkTarget
impl Sync for LinkTarget
impl Unpin for LinkTarget
impl UnsafeUnpin for LinkTarget
impl UnwindSafe for LinkTarget
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