pub struct ResolvedUrl {
pub href: String,
pub kind: UrlKind,
}Expand description
A classified URL with the final href and its kind.
href is the string the renderer puts in href="...". kind informs
which extra HTML attributes the renderer adds (e.g., class="wikilink"
for Wikilink, target="_blank" rel="noopener" for AssetNewtab).
kind covers the cases the pre-AST pipeline encoded as three string
sentinels (wikilink:, moss-newtab:, bare URL).
Fields§
§href: String§kind: UrlKindImplementations§
Trait Implementations§
Source§impl Clone for ResolvedUrl
impl Clone for ResolvedUrl
Source§fn clone(&self) -> ResolvedUrl
fn clone(&self) -> ResolvedUrl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResolvedUrl
impl Debug for ResolvedUrl
Source§impl<'de> Deserialize<'de> for ResolvedUrl
impl<'de> Deserialize<'de> for ResolvedUrl
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 ResolvedUrl
Source§impl PartialEq for ResolvedUrl
impl PartialEq for ResolvedUrl
Source§impl Serialize for ResolvedUrl
impl Serialize for ResolvedUrl
impl StructuralPartialEq for ResolvedUrl
Auto Trait Implementations§
impl Freeze for ResolvedUrl
impl RefUnwindSafe for ResolvedUrl
impl Send for ResolvedUrl
impl Sync for ResolvedUrl
impl Unpin for ResolvedUrl
impl UnsafeUnpin for ResolvedUrl
impl UnwindSafe for ResolvedUrl
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.