workspacer_syntax/
signature_options.rs

1// ---------------- [ File: workspacer-syntax/src/signature_options.rs ]
2crate::ix!();
3
4/// Control how we generate a signature string.
5/// - `fully_expand` => whether to expand all fields/variants or to keep placeholders.
6/// - `include_docs` => whether to prepend doc comments to the signature text.
7#[derive(Builder,Getters,Setters,Debug, Clone, Copy)]
8#[builder(setter(into))]
9#[getset(get="pub",set="pub")]
10pub struct SignatureOptions {
11    fully_expand:  bool,
12    include_docs:  bool,
13
14    #[builder(default=false)]
15    add_semicolon: bool,
16}
17
18impl Default for SignatureOptions {
19    fn default() -> Self {
20        SignatureOptions {
21            fully_expand:  true,  // By default, show everything
22            include_docs:  true,  // By default, show doc lines
23            add_semicolon: false,
24        }
25    }
26}