Struct starry::Conf[][src]

pub struct Conf {
    pub props: HashMap<String, String>,
    pub watched_users: HashSet<String>,
}

Fields

props: HashMap<String, String>watched_users: HashSet<String>

Implementations

impl Conf[src]

pub fn path() -> Result<PathBuf>[src]

pub fn read() -> Result<Self>[src]

read the configuration from its standard location or return the default

pub fn save(&self) -> Result<()>[src]

write the conf at its standard location

pub fn set(&mut self, name: String, value: String)[src]

pub fn get(&self, name: &str) -> Option<&str>[src]

pub fn follow(&mut self, name: String)[src]

pub fn unfollow(&mut self, name: &str)[src]

Trait Implementations

impl Clone for Conf[src]

impl Debug for Conf[src]

impl Default for Conf[src]

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

impl Serialize for Conf[src]

Auto Trait Implementations

impl RefUnwindSafe for Conf

impl Send for Conf

impl Sync for Conf

impl Unpin for Conf

impl UnwindSafe for Conf

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.