#[cfg(not(feature = "neovim-0-10"))] #[derive(Clone, Debug, Default)]
pub struct GetExtmarkByIdOpts {
details: types::Object,
}
#[cfg(not(feature = "neovim-0-10"))] impl GetExtmarkByIdOpts {
#[inline]
pub fn builder() -> GetExtmarkByIdOptsBuilder {
GetExtmarkByIdOptsBuilder::default()
}
}
#[cfg(not(feature = "neovim-0-10"))] #[derive(Clone, Default)]
pub struct GetExtmarkByIdOptsBuilder(GetExtmarkByIdOpts);
#[cfg(not(feature = "neovim-0-10"))] impl GetExtmarkByIdOptsBuilder {
#[inline]
pub fn details(&mut self, details: bool) -> &mut Self {
self.0.details = details.into();
self
}
#[inline]
pub fn build(&mut self) -> GetExtmarkByIdOpts {
std::mem::take(&mut self.0)
}
}
#[cfg(not(feature = "neovim-0-10"))] impl From<&GetExtmarkByIdOpts> for types::Dictionary {
fn from(opts: &GetExtmarkByIdOpts) -> Self {
Self::from_iter([("details", opts.details.clone())])
}
}
#[cfg(feature = "neovim-0-10")] #[derive(Clone, Debug, Default, macros::OptsBuilder)]
#[repr(C)]
pub struct GetExtmarkByIdOpts {
#[builder(mask)]
mask: u64,
#[builder(argtype = "bool")]
details: types::Boolean,
#[builder(argtype = "bool")]
hl_name: types::Boolean,
}