]> git.proxmox.com Git - proxmox.git/commit
notify: make api methods take config struct ownership
authorLukas Wagner <l.wagner@proxmox.com>
Fri, 19 Apr 2024 14:17:05 +0000 (16:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 23 Apr 2024 21:06:52 +0000 (23:06 +0200)
commita4d5594721fc5f108acc441068ca8397ecea03c6
treeb09a7888ee07cd66f67428fda8683580a9a494e8
parent1516cc26d2362f71d53c8fdd4ca0a25e18f0414c
notify: make api methods take config struct ownership

This saves us from some of the awkward cloning steps when updating.

Suggested-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
Tested-by: Folke Gleumes <f.gleumes@proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
proxmox-notify/src/api/gotify.rs
proxmox-notify/src/api/matcher.rs
proxmox-notify/src/api/mod.rs
proxmox-notify/src/api/sendmail.rs
proxmox-notify/src/api/smtp.rs