pub struct IntraLink {
pub anchor: Anchor,
pub target: LinkTarget,
pub raw: String,
}Expand description
Prose-level link with anchor, resolved target, and raw author text.
Serialized on the wire as part of StoredEntity.
The target field uses wire-safe variants only at serialize time; see
LinkTarget::Unresolved.
Fields§
§anchor: AnchorByte span locating the link within a prose field.
target: LinkTargetResolved link destination.
raw: StringRaw link text as authored in source prose.
Trait Implementations§
impl Eq for IntraLink
impl StructuralPartialEq for IntraLink
Auto Trait Implementations§
impl Freeze for IntraLink
impl RefUnwindSafe for IntraLink
impl Send for IntraLink
impl Sync for IntraLink
impl Unpin for IntraLink
impl UnsafeUnpin for IntraLink
impl UnwindSafe for IntraLink
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