[][src]Enum seymour_protocol::Command

pub enum Command {
    User {
        username: String,
    },
    ListSubscriptions,
    Subscribe {
        url: String,
    },
    Unsubscribe {
        id: i64,
    },
    ListUnread,
    MarkRead {
        id: i64,
    },
}

Commands sent to seymour server

Variants

User

Select the user user

Fields of User

username: String
ListSubscriptions

List the current user's subscriptions

Requires a client to issue a User command prior.

Subscribe

Subscribe the current user to a new feed

Requires a client to issue a User command prior.

Fields of Subscribe

url: String
Unsubscribe

Unsubscribe the current user from a feed

Requires a client to issue a User command prior.

Fields of Unsubscribe

id: i64
ListUnread

List the current user's unread feed entries

Requires a client to issue a User command prior.

MarkRead

Mark a feed entry as read by the current user

Requires a client to issue a User command prior.

Fields of MarkRead

id: i64

Trait Implementations

impl Display for Command[src]

impl FromStr for Command[src]

type Err = ParseMessageError

The associated error which can be returned from parsing.

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[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.