feat: supports cron update profiles

This commit is contained in:
GyDi
2022-04-20 20:37:16 +08:00
committed by GitHub
parent 17f8703c71
commit 9dd41be608
5 changed files with 190 additions and 49 deletions

View File

@@ -100,6 +100,11 @@ impl Profiles {
self.valid = valid;
}
/// get items ref
pub fn get_items(&self) -> Option<&Vec<PrfItem>> {
self.items.as_ref()
}
/// find the item by the uid
pub fn get_item(&self, uid: &String) -> Result<&PrfItem> {
if self.items.is_some() {