clean cache, handled warnings etc

This commit is contained in:
Simon
2025-06-06 07:48:21 +00:00
parent df323ec9fd
commit 60a07269f6
10 changed files with 96 additions and 67 deletions

View File

@@ -44,11 +44,11 @@ pub struct Options {
pub description: String, //"Sort the videos by new or old.",
pub systemImage: String, //"sort.image",
pub colorName: String, //"blue",
pub options: Vec<Option_Value>,
pub options: Vec<OptionValue>,
}
#[derive(serde::Serialize)]
pub struct Option_Value {
pub struct OptionValue {
pub id: String, //"new",
pub title: String, //"New",
pub description: Option<String>, //"Sort the videos by new or old."
@@ -107,15 +107,19 @@ impl Status {
.to_string(),
}
}
#[allow(dead_code)]
pub fn add_notice(&mut self, notice: Notice) {
self.notices.push(notice);
}
#[allow(dead_code)]
pub fn add_channel(&mut self, channel: Channel) {
self.channels.push(channel);
}
#[allow(dead_code)]
pub fn add_option(&mut self, option: Options) {
self.options.push(option);
}
#[allow(dead_code)]
pub fn add_category(&mut self, category: String) {
self.categories.push(category);
}