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 /// See the docs at <https://bon-rs.com/reference/builder/top-level/derive>
101 pub use core::convert::Into;
102
103 /// See the docs at <https://bon-rs.com/reference/builder/top-level/derive>
104 #[rustversion::since(1.64)]
105 pub use core::future::IntoFuture;
106 }
107
108 /// The real name of this parameter is `crate` (without the underscore).
109 /// It's hinted with an underscore due to the limitations of the current
110 /// completions limitation. This will be fixed in the future.
111 ///
112 /// See the docs at <https://bon-rs.com/reference/builder/top-level/crate>
113 pub const crate_: Option<Path> = None;
114}
115
116/// Visibility inside of a string literal. Empty string means private visibility.
117///
118/// Examples:
119///
120/// - `""` - the symbol is private (accessible only within the same module)
121/// - `"pub"` - the symbol is accessible outside of the crate
122/// - `"pub(crate)"` - the symbol is accessible anywhere inside of the crate, but not outside of it
123///
124/// [Rust reference](https://doc.rust-lang.org/reference/visibility-and-privacy.html)
125pub struct VisibilityString;
126
127/// [Rust reference](https://doc.rust-lang.org/reference/identifiers.html)
128pub struct Identifier;
129
130/// The presence of this attribute enables the behavior. The attribute has no value.
131pub struct Flag;
132
133/// Documentation comments using the syntax `/// doc comment here`.
134///
135/// [Rust reference](https://doc.rust-lang.org/reference/comments.html#doc-comments)
136pub struct DocComments;
137
138/// Simple path that is valid in a `use` statement. Example: `foo::bar::baz`.
139///
140/// [Rust reference](https://doc.rust-lang.org/reference/paths.html?highlight=path#simple-paths)
141pub struct Path;