Struct starry::Conf [−][src]
Fields
props: HashMap<String, String>
watched_users: HashSet<String>
Implementations
impl Conf
[src]
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<'de> Deserialize<'de> for Conf
[src]
impl<'de> Deserialize<'de> for Conf
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Conf
impl RefUnwindSafe for Conf
impl UnwindSafe for Conf
impl UnwindSafe for Conf
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]