pub fn is_pending(self) -> bool {
self == Status::Pending
}
+
+ /// Convenience method to check if the status is 'valid'.
+ #[inline]
+ pub fn is_valid(self) -> bool {
+ self == Status::Valid
+ }
}
#[derive(Deserialize, Serialize)]
pub fn is_pending(self) -> bool {
self == ChallengeStatus::Pending
}
+
+ /// Convenience method to check if the status is 'valid'.
+ #[inline]
+ pub fn is_valid(self) -> bool {
+ self == ChallengeStatus::Valid
+ }
}
#[derive(Deserialize, Serialize)]
pub fn is_pending(self) -> bool {
self == Status::Pending
}
+
+ /// Convenience method to check if the status is 'valid'.
+ #[inline]
+ pub fn is_valid(self) -> bool {
+ self == Status::Valid
+ }
}
#[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize)]