add clear events method

This commit is contained in:
yggverse 2025-03-23 02:43:26 +02:00
parent 1a1fa86ac5
commit e8eaaa5f32
2 changed files with 6 additions and 2 deletions

View file

@ -84,6 +84,11 @@ impl Info {
self
}
pub fn clear_events(&mut self) -> &mut Self {
self.event.clear();
self
}
pub fn set_mime(&mut self, mime: Option<String>) -> &mut Self {
self.mime = mime;
self