nvim_oxi_api/opts/
get_extmarks.rs

1#[derive(Clone, Debug, Default, macros::OptsBuilder)]
2#[repr(C)]
3/// Options passed to
4/// [`Buffer::get_extmarks()`](crate::Buffer::get_extmarks).
5pub struct GetExtmarksOpts {
6    #[builder(mask)]
7    mask: u64,
8
9    #[builder(
10        method = "limits",
11        argtype = "bool",
12        inline = "{0} as types::Integer"
13    )]
14    limit: types::Integer,
15
16    /// Whether to include the extmark's
17    /// [`ExtmarkInfos`](crate::types::ExtmarkInfos) as the last element of
18    /// the tuples returned by
19    /// [`Buffer::get_extmarks()`](crate::Buffer::get_extmarks).
20    #[builder(argtype = "bool")]
21    details: types::Boolean,
22
23    #[builder(argtype = "bool")]
24    hl_name: types::Boolean,
25
26    #[builder(argtype = "bool")]
27    overlap: types::Boolean,
28
29    // TODO: fix `Into`.
30    // TODO: name it `type` instead of `ty`.
31    // #[builder(Into)]
32    #[builder(
33        generics = "S: Into<types::String>",
34        argtype = "S",
35        inline = "{0}.into()"
36    )]
37    ty: types::String,
38}