pub struct ConfigFile {
pub path: String,
pub text: String,
pub revision: Option<String>,
}Expand description
GET /v1/config: the config the daemon runs with. Parse text with config::Config::parse for its fields.
Fields§
§path: StringThe file it was read from, and PUT /v1/config writes.
text: StringThe TOML, as last loaded or written by the daemon, with each [[notify.targets]] entry’s url and header
values shown as config::SECRET_SHOWN; PUT /v1/config puts them back.
revision: Option<String>config::revision of text: send it as PUT /v1/config?revision= and a config replaced meanwhile, as
by auto sizing, is not overwritten (409). None from a daemon before it.
Trait Implementations§
Source§impl Clone for ConfigFile
impl Clone for ConfigFile
Source§impl Debug for ConfigFile
impl Debug for ConfigFile
Source§impl<'de> Deserialize<'de> for ConfigFile
impl<'de> Deserialize<'de> for ConfigFile
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
impl Eq for ConfigFile
Source§impl PartialEq for ConfigFile
impl PartialEq for ConfigFile
Source§impl Serialize for ConfigFile
impl Serialize for ConfigFile
impl StructuralPartialEq for ConfigFile
Auto Trait Implementations§
impl Freeze for ConfigFile
impl RefUnwindSafe for ConfigFile
impl Send for ConfigFile
impl Sync for ConfigFile
impl Unpin for ConfigFile
impl UnsafeUnpin for ConfigFile
impl UnwindSafe for ConfigFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.