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: Type§start: i32§end: i32§value: &'a str§list_slug: &'a str§display_url: &'a str§expanded_url: &'a strImplementations§
Source§impl<'a> Entity<'a>
impl<'a> Entity<'a>
pub fn get_type(&self) -> Type
pub fn get_start(&self) -> i32
pub fn get_end(&self) -> i32
pub fn get_value(&self) -> &str
pub fn get_list_slug(&self) -> &'a str
pub fn get_display_url(&self) -> &'a str
pub fn get_expanded_url(&self) -> &'a str
pub fn new(t: Type, value: &'a str, start: i32, end: i32) -> Entity<'a>
pub fn new_list( t: Type, value: &'a str, list_slug: &'a str, start: i32, end: i32, ) -> Entity<'a>
Trait Implementations§
impl<'a> Eq for Entity<'a>
impl<'a> StructuralPartialEq for Entity<'a>
Auto Trait Implementations§
impl<'a> Freeze for Entity<'a>
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> UnsafeUnpin for Entity<'a>
impl<'a> UnwindSafe for Entity<'a>
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