[][src]Struct twitter_text::entity::Entity

pub struct Entity<'a> {
    pub t: Type,
    pub start: i32,
    pub end: i32,
    pub value: &'a str,
    pub list_slug: &'a str,
    pub display_url: &'a str,
    pub expanded_url: &'a str,
}

Fields

t: Typestart: i32end: i32value: &'a strlist_slug: &'a strdisplay_url: &'a strexpanded_url: &'a str

Implementations

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

pub fn get_type(&self) -> Type[src]

pub fn get_start(&self) -> i32[src]

pub fn get_end(&self) -> i32[src]

pub fn get_value(&self) -> &str[src]

pub fn get_list_slug(&self) -> &'a str[src]

pub fn get_display_url(&self) -> &'a str[src]

pub fn get_expanded_url(&self) -> &'a str[src]

pub fn new(t: Type, value: &'a str, start: i32, end: i32) -> Entity<'a>[src]

pub fn new_list(
    t: Type,
    value: &'a str,
    list_slug: &'a str,
    start: i32,
    end: i32
) -> Entity<'a>
[src]

Trait Implementations

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

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

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for Entity<'a>

impl<'a> Send for Entity<'a>

impl<'a> Sync for Entity<'a>

impl<'a> Unpin for Entity<'a>

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