bon/__/ide.rs
1#![allow(
2 non_upper_case_globals,
3 missing_debug_implementations,
4 clippy::wildcard_imports
5)]
6
7/// Completions for the top-level `builder` attribute.
8pub mod builder_top_level {
9 use super::*;
10
11 /// See the docs at <https://bon-rs.com/reference/builder/top-level/builder_type>
12 pub const builder_type: Option<Identifier> = None;
13
14 pub mod builder_type {
15 use super::*;
16
17 /// See the docs at <https://bon-rs.com/reference/builder/top-level/builder_type#name>
18 pub const name: Identifier = Identifier;
19
20 /// See the docs at <https://bon-rs.com/reference/builder/top-level/builder_type#vis>
21 pub const vis: VisibilityString = VisibilityString;
22
23 /// See the docs at <https://bon-rs.com/reference/builder/top-level/builder_type#doc>
24 pub const doc: DocComments = DocComments;
25 }
26
27 /// See the docs at <https://bon-rs.com/reference/builder/top-level/finish_fn>
28 pub const finish_fn: Option<Identifier> = None;
29
30 /// See the docs at <https://bon-rs.com/reference/builder/top-level/finish_fn>
31 pub mod finish_fn {
32 use super::*;
33
34 /// See the docs at <https://bon-rs.com/reference/builder/top-level/finish_fn#name>
35 pub const name: Identifier = Identifier;
36
37 /// See the docs at <https://bon-rs.com/reference/builder/top-level/finish_fn#vis>
38 pub const vis: VisibilityString = VisibilityString;
39
40 /// See the docs at <https://bon-rs.com/reference/builder/top-level/finish_fn#doc>
41 pub const doc: DocComments = DocComments;
42 }
43
44 /// See the docs at <https://bon-rs.com/reference/builder/top-level/start_fn>
45 pub const start_fn: Option<Identifier> = None;
46
47 /// See the docs at <https://bon-rs.com/reference/builder/top-level/start_fn>
48 pub mod start_fn {
49 use super::*;
50
51 /// See the docs at <https://bon-rs.com/reference/builder/top-level/start_fn#name>
52 pub const name: Identifier = Identifier;
53
54 /// See the docs at <https://bon-rs.com/reference/builder/top-level/start_fn#vis>
55 pub const vis: VisibilityString = VisibilityString;
56
57 /// See the docs at <https://bon-rs.com/reference/builder/top-level/start_fn#doc>
58 pub const doc: DocComments = DocComments;
59 }
60
61 /// See the docs at <https://bon-rs.com/reference/builder/top-level/state_mod>
62 pub const state_mod: Option<Identifier> = None;
63
64 /// See the docs at <https://bon-rs.com/reference/builder/top-level/state_mod>
65 pub mod state_mod {
66 use super::*;
67
68 /// See the docs at <https://bon-rs.com/reference/builder/top-level/state_mod#name>
69 pub const name: Identifier = Identifier;
70
71 /// See the docs at <https://bon-rs.com/reference/builder/top-level/state_mod#vis>
72 pub const vis: VisibilityString = VisibilityString;
73
74 /// See the docs at <https://bon-rs.com/reference/builder/top-level/state_mod#doc>
75 pub const doc: DocComments = DocComments;
76 }
77
78 /// See the docs at <https://bon-rs.com/reference/builder/top-level/on>
79 pub mod on {
80 use super::*;
81
82 /// See the docs at <https://bon-rs.com/reference/builder/top-level/on>
83 pub const into: Flag = Flag;
84
85 /// See the docs at <https://bon-rs.com/reference/builder/top-level/on>
86 pub const required: Flag = Flag;
87
88 /// See the docs at <https://bon-rs.com/reference/builder/top-level/on>
89 pub const overwritable: Flag = Flag;
90 }
91
92 /// See the docs at <https://bon-rs.com/reference/builder/top-level/derive>
93 pub mod derive {
94 /// See the docs at <https://bon-rs.com/reference/builder/top-level/derive>
95 pub use core::fmt::Debug;
96
97 /// See the docs at <https://bon-rs.com/reference/builder/top-level/derive>
98 pub use core::clone::Clone;
99 }
100
101 /// The real name of this parameter is `crate` (without the underscore).
102 /// It's hinted with an underscore due to the limitations of the current
103 /// completions limitation. This will be fixed in the future.
104 ///
105 /// See the docs at <https://bon-rs.com/reference/builder/top-level/crate>
106 pub const crate_: Option<Path> = None;
107}
108
109/// Visibility inside of a string literal. Empty string means private visibility.
110///
111/// Examples:
112///
113/// - `""` - the symbol is private (accessible only within the same module)
114/// - `"pub"` - the symbol is accessible outside of the crate
115/// - `"pub(crate)"` - the symbol is accessible anywhere inside of the crate, but not outside of it
116///
117/// [Rust reference](https://doc.rust-lang.org/reference/visibility-and-privacy.html)
118pub struct VisibilityString;
119
120/// [Rust reference](https://doc.rust-lang.org/reference/identifiers.html)
121pub struct Identifier;
122
123/// The presence of this attribute enables the behavior. The attribute has no value.
124pub struct Flag;
125
126/// Documentation comments using the syntax `/// doc comment here`.
127///
128/// [Rust reference](https://doc.rust-lang.org/reference/comments.html#doc-comments)
129pub struct DocComments;
130
131/// Simple path that is valid in a `use` statement. Example: `foo::bar::baz`.
132///
133/// [Rust reference](https://doc.rust-lang.org/reference/paths.html?highlight=path#simple-paths)
134pub struct Path;