mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add some getters
This commit is contained in:
parent
05a8647f28
commit
922ddd00c4
1 changed files with 10 additions and 0 deletions
|
|
@ -95,6 +95,16 @@ impl Info {
|
||||||
self.is_deprecated = false;
|
self.is_deprecated = false;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Getters
|
||||||
|
|
||||||
|
pub fn matches(&self, request: &str) -> bool {
|
||||||
|
self.request.as_ref().is_some_and(|r| r == request)
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn is_deprecated(&self) -> bool {
|
||||||
|
self.is_deprecated
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Info {
|
impl Default for Info {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue