[][src]Struct ena::config::BoardSettings

pub struct BoardSettings {
    pub board: YotsubaBoard,
    pub retry_attempts: u16,
    pub refresh_delay: u16,
    pub throttle_millisec: u32,
    pub download_archives: bool,
    pub download_media: bool,
    pub download_thumbnails: bool,
    pub keep_media: bool,
    pub keep_thumbnails: bool,
}

Settings for a board

Fields

board: YotsubaBoardretry_attempts: u16refresh_delay: u16throttle_millisec: u32download_archives: booldownload_media: booldownload_thumbnails: boolkeep_media: boolkeep_thumbnails: bool

Trait Implementations

impl Clone for BoardSettings[src]

impl Copy for BoardSettings[src]

impl Debug for BoardSettings[src]

impl Default for BoardSettings[src]

This default method will call if there's any missing fields. That's why the board field is ommited in the config json. This is why Yotsuba::None will go through, its not being deserialized or parsed by serde_json, the default is merely being inserted, and no checks are done. See the overriden impl of Deserialize for YotsubaBoard.
It's overridden to ignore YotsubaBoard::None.

impl<'de> Deserialize<'de> for BoardSettings where
    BoardSettings: Default
[src]

impl Serialize for BoardSettings[src]

Auto Trait Implementations

impl RefUnwindSafe for BoardSettings

impl Send for BoardSettings

impl Sync for BoardSettings

impl Unpin for BoardSettings

impl UnwindSafe for BoardSettings

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,