2023-07-01 04:43:18 +00:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use serde_json::{Map, Value};
|
2023-06-30 10:47:46 +00:00
|
|
|
use std::fs::File;
|
|
|
|
use std::io::{BufReader, Read};
|
2023-06-30 16:47:25 +00:00
|
|
|
|
2023-06-30 10:47:46 +00:00
|
|
|
|
|
|
|
|
2023-07-01 04:43:18 +00:00
|
|
|
// impl Site {
|
|
|
|
// pub fn new(url: &str, name: Option<&str>) -> Self {
|
|
|
|
// Site {
|
|
|
|
// url: url.to_string(),
|
|
|
|
// name: name.map(str::to_string),
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// pub fn url(&self) -> &String {
|
|
|
|
// &self.url
|
|
|
|
// }
|
|
|
|
// pub fn name(&self) -> Option<&String> {
|
|
|
|
// match &self.name {
|
|
|
|
// Some(name) => Some(&name),
|
|
|
|
// None => None,
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|