pub struct TokuConfig {
pub default_format: String,
pub color: String,
pub metadata_source: String,
}Expand description
Application configuration, persisted as config.toml in the data directory.
Fields§
§default_format: StringDefault output format: table, json, csv
color: StringWhether to use colors (auto, always, never)
metadata_source: StringPrimary metadata source (openlibrary, google)
Implementations§
Trait Implementations§
Source§impl Clone for TokuConfig
impl Clone for TokuConfig
Source§fn clone(&self) -> TokuConfig
fn clone(&self) -> TokuConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokuConfig
impl Debug for TokuConfig
Source§impl Default for TokuConfig
impl Default for TokuConfig
Source§impl<'de> Deserialize<'de> for TokuConfigwhere
TokuConfig: Default,
impl<'de> Deserialize<'de> for TokuConfigwhere
TokuConfig: Default,
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 for TokuConfig
impl PartialEq for TokuConfig
Source§fn eq(&self, other: &TokuConfig) -> bool
fn eq(&self, other: &TokuConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TokuConfig
impl Serialize for TokuConfig
impl Eq for TokuConfig
impl StructuralPartialEq for TokuConfig
Auto Trait Implementations§
impl Freeze for TokuConfig
impl RefUnwindSafe for TokuConfig
impl Send for TokuConfig
impl Sync for TokuConfig
impl Unpin for TokuConfig
impl UnsafeUnpin for TokuConfig
impl UnwindSafe for TokuConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more