style: make verbose fields private
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -129,7 +129,7 @@ pub struct OptionsArgs {
|
|||||||
|
|
||||||
#[arg(short, long, action = clap::ArgAction::Count, conflicts_with("quiet"))]
|
#[arg(short, long, action = clap::ArgAction::Count, conflicts_with("quiet"))]
|
||||||
#[arg(help("Increase message verbosity, can be given more than once"))]
|
#[arg(help("Increase message verbosity, can be given more than once"))]
|
||||||
pub verbose: u8,
|
pub(crate) verbose: u8,
|
||||||
|
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
#[arg(help("Do not show any messages"))]
|
#[arg(help("Do not show any messages"))]
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ pub struct Settings {
|
|||||||
pub list_format: Vec<ColumnConfig>,
|
pub list_format: Vec<ColumnConfig>,
|
||||||
pub human_readable: bool,
|
pub human_readable: bool,
|
||||||
pub output_format: Option<String>,
|
pub output_format: Option<String>,
|
||||||
pub verbose: u8,
|
pub(crate) verbose: u8,
|
||||||
pub quiet: bool,
|
pub quiet: bool,
|
||||||
pub force: bool,
|
pub force: bool,
|
||||||
pub server: Option<ServerConfig>,
|
pub server: Option<ServerConfig>,
|
||||||
|
|||||||
@@ -28,8 +28,8 @@ pub struct ServerConfig {
|
|||||||
pub struct AppState {
|
pub struct AppState {
|
||||||
pub db: Arc<Mutex<rusqlite::Connection>>,
|
pub db: Arc<Mutex<rusqlite::Connection>>,
|
||||||
pub data_dir: PathBuf,
|
pub data_dir: PathBuf,
|
||||||
pub(crate) password: Option<String>,
|
password: Option<String>,
|
||||||
pub(crate) password_hash: Option<String>,
|
password_hash: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, ToSchema)]
|
#[derive(Serialize, Deserialize, ToSchema)]
|
||||||
|
|||||||
Reference in New Issue
Block a user