pub enum Content {
Show 16 variants
Login(Login),
GetApiLevel(ApiLevel),
GetVersion(Version),
Error(ApiError),
IsLoggedIn(LoggedIn),
Status(Status),
GetUnread(Unread),
GetFeeds(Vec<Feed>),
GetHeadlines(Vec<HeadlineWrapper>),
Labels(Vec<Label>),
GetArticle(Vec<Headline>),
GetConfig(Config),
GetPref(Preference),
FeedTree(FeedTree),
GetCategories(Vec<Category>),
GetCounters(Vec<Counter>),
}
Expand description
Represents the various types of responese from the TTRSS API. The user is expected to inspect the enum for the appropriate type.
Variants§
Login(Login)
GetApiLevel(ApiLevel)
GetVersion(Version)
Error(ApiError)
IsLoggedIn(LoggedIn)
Status(Status)
GetUnread(Unread)
GetFeeds(Vec<Feed>)
GetHeadlines(Vec<HeadlineWrapper>)
Labels(Vec<Label>)
GetArticle(Vec<Headline>)
GetConfig(Config)
GetPref(Preference)
FeedTree(FeedTree)
GetCategories(Vec<Category>)
GetCounters(Vec<Counter>)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Content
impl<'de> Deserialize<'de> for Content
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
source§impl PartialEq<Content> for Content
impl PartialEq<Content> for Content
impl Eq for Content
impl StructuralEq for Content
impl StructuralPartialEq for Content
Auto Trait Implementations§
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.