mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2025-07-16 14:03:28 +02:00
Switch a lot of Strings to Arc<str>
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user