Struct NodeWikiLink

#[non_exhaustive]
pub struct NodeWikiLink { pub url: String, pub embed: bool }

The details of a wikilink's destination. For both [[link]] and ![[embed]] syntax

Fields

url: String

The URL for the link destination.

embed: bool

If true, this is an embed link, otherwise a normal link.

Implementations

impl NodeWikiLink

fn new(url: impl Into<String>, embed: bool) -> Self

Create a new NodeWikiLink with the given URL and embedded..ness.

Trait Implementations

impl Clone for NodeWikiLink

fn clone(&self) -> Self

impl Debug for NodeWikiLink

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for NodeWikiLink

fn default() -> Self

impl Eq for NodeWikiLink

impl PartialEq for NodeWikiLink

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for NodeWikiLink

Auto Trait Implementations

impl Freeze for NodeWikiLink

impl RefUnwindSafe for NodeWikiLink

impl Send for NodeWikiLink

impl Sync for NodeWikiLink

impl Unpin for NodeWikiLink

impl UnsafeUnpin for NodeWikiLink

impl UnwindSafe for NodeWikiLink

Blanket Implementations

impl<F, T, S> SimdInto<T, S> for NodeWikiLink where T: SimdFrom<F, S>, S: Simd,

impl<T> Any for NodeWikiLink where T: 'static + ?Sized,

impl<T> Borrow<T> for NodeWikiLink where T: ?Sized,

impl<T> BorrowMut<T> for NodeWikiLink where T: ?Sized,

impl<T> CloneToUninit for NodeWikiLink where T: Clone,

impl<T> From<T> for NodeWikiLink

impl<T> ToOwned for NodeWikiLink where T: Clone,

impl<T, S> SimdFrom<T, S> for NodeWikiLink where S: Simd,

impl<T, U> Into<U> for NodeWikiLink where U: From<T>,

impl<T, U> TryFrom<U> for NodeWikiLink where U: Into<T>,

impl<T, U> TryInto<U> for NodeWikiLink where U: TryFrom<T>,