[][src]Struct twitter_text::autolinker::Autolinker

pub struct Autolinker<'a> {
    pub no_follow: bool,
    pub url_class: &'a str,
    pub url_target: &'a str,
    pub symbol_tag: &'a str,
    pub text_with_symbol_tag: &'a str,
    pub list_class: &'a str,
    pub username_class: &'a str,
    pub hashtag_class: &'a str,
    pub cashtag_class: &'a str,
    pub username_url_base: &'a str,
    pub list_url_base: &'a str,
    pub hashtag_url_base: &'a str,
    pub cashtag_url_base: &'a str,
    pub invisible_tag_attrs: &'a str,
    pub username_include_symbol: bool,
    // some fields omitted
}

Adds HTML links to hashtag, username and list references in Tweet text.

Fields

no_follow: boolurl_class: &'a strurl_target: &'a strsymbol_tag: &'a strtext_with_symbol_tag: &'a strlist_class: &'a strusername_class: &'a strhashtag_class: &'a strcashtag_class: &'a strusername_url_base: &'a strlist_url_base: &'a strhashtag_url_base: &'a strcashtag_url_base: &'a strinvisible_tag_attrs: &'a strusername_include_symbol: bool

Implementations

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

pub fn new(no_follow: bool) -> Autolinker<'a>[src]

An Autolinker with default properties.

Auto-link all entities.

Auto-link the @username and @username/list references in the provided text. Links to @username references will have the username_class CSS classes added. Links to @username/list references will have the list_class CSS class added.

Auto-link #hashtag references in the provided Tweet text. The #hashtag links will have the hashtag_class CSS class added.

Auto-link URLs in the Tweet text provided. This only auto-links URLs with protocol.

Auto-link $cashtag references in the provided Tweet text. The $cashtag links will have the cashtag_class CSS class added.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Autolinker<'a>

impl<'a> Send for Autolinker<'a>

impl<'a> Sync for Autolinker<'a>

impl<'a> Unpin for Autolinker<'a>

impl<'a> UnwindSafe for Autolinker<'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, 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.