plugin_framework, add event listening

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-04-27 11:24:19 +08:00
parent 404525759e
commit 9a457894b3
5 changed files with 84 additions and 4 deletions

View File

@@ -60,6 +60,7 @@ pub struct Desc {
github: String,
location: Location,
config: Config,
listen_events: Vec<String>,
}
impl Desc {
@@ -115,4 +116,8 @@ impl Desc {
pub fn config(&self) -> &Config {
&self.config
}
pub fn listen_events(&self) -> &Vec<String> {
&self.listen_events
}
}