[][src]Enum mygpoclient::episode::EpisodeActionType

pub enum EpisodeActionType {
    Download,
    Delete,
    Play {
        position: u32,
        started: Option<u32>,
        total: Option<u32>,
    },
    New,
    Flattr,
}

Type of an EpisodeAction

Variants

Download

download event, so that other clients know where a file has already been downloaded

Delete

delete event, so that other clients know where a file has already been deleted

Play

play event, so that other clients know where to start playback

Fields of Play

position: u32

the position (in seconds) at which the client stopped playback

started: Option<u32>

the position (in seconds) at which the client started playback. Requires total to be set.

total: Option<u32>

the total length of the file in seconds. Requires started to be set.

New

Resets previous events. This state needs to be interpreted by receiving clients and does not delete any information on the webservice.

Flattr

(undocumented)

Trait Implementations

impl Clone for EpisodeActionType[src]

impl Copy for EpisodeActionType[src]

impl Debug for EpisodeActionType[src]

impl<'de> Deserialize<'de> for EpisodeActionType[src]

impl Eq for EpisodeActionType[src]

impl Hash for EpisodeActionType[src]

impl Ord for EpisodeActionType[src]

impl PartialEq<EpisodeActionType> for EpisodeActionType[src]

impl PartialOrd<EpisodeActionType> for EpisodeActionType[src]

impl Serialize for EpisodeActionType[src]

impl StructuralEq for EpisodeActionType[src]

impl StructuralPartialEq for EpisodeActionType[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.