[][src]Struct oceanpkg::config::UserConfig

pub struct UserConfig {
    pub send_logs: bool,
    pub send_logs_rate: Duration,
}

Represents the configuration specific to the user.

Fields

send_logs: bool

Whether to send logs to ensure correct behavior.

send_logs_rate: Duration

How often to send logs if send_logs is true. The default is 1 week.

Methods

impl UserConfig[src]

pub const fn new() -> Self[src]

Creates a new default configuration.

Trait Implementations

impl Clone for UserConfig[src]

impl Debug for UserConfig[src]

impl Default for UserConfig[src]

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

impl Eq for UserConfig[src]

impl PartialEq<UserConfig> for UserConfig[src]

impl Serialize for UserConfig[src]

impl StructuralEq for UserConfig[src]

impl StructuralPartialEq for UserConfig[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: Deserialize<'de>, 
[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 = !

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.