pub struct Tag {
pub name: String,
pub url: String,
pub history: Vec<TagHistory>,
pub following: Option<bool>,
}Expand description
Hashtags in the status. This functions both as a
Status::Tag, and
as a Tag. In the case of
the former, at the time of writing, the history field is always empty and
the following field is always none.
Fields§
§name: StringThe hashtag, not including the preceding #.
url: StringThe URL of the hashtag.
history: Vec<TagHistory>Usage statistics for given days (typically the past week).
following: Option<bool>Whether the current token’s authorized user is following this tag.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tag
impl<'de> Deserialize<'de> for Tag
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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