-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: hints parsing #1
Conversation
…ransient, coordinates)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do changes that I requested. Other than that - LGTM.
src/data/notification.rs
Outdated
#[derive(Debug, Clone, Serialize, Deserialize, Default)] | ||
pub enum Category { | ||
Device(Option<CategoryEvent>), | ||
Email(Option<CategoryEvent>), | ||
Im(Option<CategoryEvent>), | ||
Network(Option<CategoryEvent>), | ||
Presence(Option<CategoryEvent>), | ||
Transfer(Option<CategoryEvent>), | ||
#[default] | ||
None, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend to add CategoryEvent::Generic
and use it instead of Option<CategoryEvent>
, because it is easy to understand what means.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.