chore: update

This commit is contained in:
huzibaca
2024-12-31 11:11:29 +08:00
parent ad335ba005
commit 6b349eda45
3 changed files with 19 additions and 26 deletions

View File

@@ -5,6 +5,12 @@ use serde::{Deserialize, Serialize};
use serde_yaml::Mapping;
use std::collections::HashMap;
#[derive(Debug, Clone, Default, PartialEq)]
pub struct Rate {
pub up: u64,
pub down: u64,
}
/// PUT /configs
/// path 是绝对路径
pub async fn put_configs(path: &str) -> Result<()> {