Struct terminal_link::Link[][src]

pub struct Link<'a> {
    pub id: &'a str,
    pub text: &'a str,
    pub url: &'a str,
}

A clickable link component.

Fields

id: &'a strtext: &'a strurl: &'a str

Implementations

impl<'a> Link<'a>[src]

pub fn new(text: &'a str, url: &'a str) -> Self[src]

Create a new link with a name and target url.

pub fn with_id(text: &'a str, url: &'a str, id: &'a str) -> Self[src]

Create a new link with a name, a target url and an id.

Trait Implementations

impl<'a> Clone for Link<'a>[src]

impl<'a> Debug for Link<'a>[src]

impl Display for Link<'_>[src]

impl<'a> Eq for Link<'a>[src]

impl<'a> Hash for Link<'a>[src]

impl<'a> PartialEq<Link<'a>> for Link<'a>[src]

impl<'a> StructuralEq for Link<'a>[src]

impl<'a> StructuralPartialEq for Link<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Link<'a>

impl<'a> Send for Link<'a>

impl<'a> Sync for Link<'a>

impl<'a> Unpin for Link<'a>

impl<'a> UnwindSafe for Link<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.