nvim_oxi_api/opts/
notify.rs

1use types::Dictionary;
2
3/// Options passed to [`notify()`](crate::notify). Currently unused.
4#[derive(Clone, Debug, Default)]
5pub struct NotifyOpts {}
6
7impl NotifyOpts {
8    #[inline(always)]
9    pub fn builder() -> NotifyOptsBuilder {
10        NotifyOptsBuilder::default()
11    }
12}
13
14#[derive(Clone, Default)]
15pub struct NotifyOptsBuilder(NotifyOpts);
16
17impl NotifyOptsBuilder {
18    #[inline]
19    pub fn build(&mut self) -> NotifyOpts {
20        std::mem::take(&mut self.0)
21    }
22}
23
24impl From<&NotifyOpts> for Dictionary {
25    fn from(_: &NotifyOpts) -> Self {
26        Dictionary::new()
27    }
28}