pub struct Settings {
pub app: App,
pub auth: Auth,
pub opts: Opts,
pub triggers: HashMap<String, Trigger>,
pub targets: HashMap<String, Target>,
pub webhooks: HashMap<String, Webhook>,
pub anchors: Vec<PathBuf>,
}
Fields§
§app: App
§auth: Auth
§opts: Opts
§triggers: HashMap<String, Trigger>
§targets: HashMap<String, Target>
§webhooks: HashMap<String, Webhook>
§anchors: Vec<PathBuf>
List of paths to anchor the service to
This is useful to prevent the service notifying a target when the drive is not mounted or visible The contents of the file/directory are not tampered with, only the presence of the file/directory is checked
Example:
anchors:
- /mnt/media/tv # Directory
- /mnt/media/anchor # File
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Settings
impl<'de> Deserialize<'de> for Settings
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
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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