Switch a lot of Strings to Arc<str>

This commit is contained in:
Slatian
2023-10-08 09:12:06 +02:00
parent 223abdd804
commit 5c74de5685
5 changed files with 47 additions and 38 deletions

View File

@ -1,5 +1,7 @@
use serde::{Deserialize,Serialize};
use std::sync::Arc;
/* Response format */
#[derive(Deserialize, Serialize, Clone, Copy)]
@ -39,13 +41,13 @@ pub struct QuerySettings {
pub format: ResponseFormat,
pub lang: String,
pub available_dns_resolvers: Vec<Selectable>,
pub dns_resolver_id: String,
pub dns_resolver_id: Arc<str>,
}
#[derive(Deserialize, Serialize, Clone)]
pub struct Selectable {
pub id: String,
pub name: String,
pub id: Arc<str>,
pub name: Arc<str>,
pub weight: i32,
}