pub enum Link {
Internal(InternalData),
Anchor(AnchorData),
RedLink(RedLinkData),
MediaLink(MediaData),
External(ExternalData),
ExternalToInternal(ExternalToInteralData),
}Variants§
Internal(InternalData)
Interal link to another page in the same wiki
Anchor(AnchorData)
Anchor to a specific section in the current page
Note: this only corresponds to anchors on the current page. For anchors in another page on
the same wiki, LinkType::Internal is used
RedLink(RedLinkData)
A special type of link that leads to an internal page that doesn’t exist yet
MediaLink(MediaData)
Link pointing to a media
External(ExternalData)
External link to a page at another website
ExternalToInternal(ExternalToInteralData)
External link to an interal page in the same wiki
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Link
impl<'de> Deserialize<'de> for Link
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 Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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.