pub trait Exception {
// Required methods
fn id(&self) -> &'static str;
fn name(&self) -> &'static str;
fn text(&self) -> &'static str;
fn is_deprecated(&self) -> bool;
fn comments(&self) -> Option<&'static str>;
fn see_also(&self) -> &'static [&'static str];
}
Expand description
Base functionality for all license exceptions.
Required Methods§
sourcefn is_deprecated(&self) -> bool
fn is_deprecated(&self) -> bool
Says if the exception is deprecated.
Trait Implementations§
source§impl<'de> Deserialize<'de> for &dyn Exception
impl<'de> Deserialize<'de> for &dyn Exception
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more