Struct syntax::attr::StabilityUnstable [-] [+] [src]

pub struct Stability {
    pub level: StabilityLevel,
    pub feature: InternedString,
    pub since: Option<InternedString>,
    pub deprecated_since: Option<InternedString>,
    pub reason: Option<InternedString>,
}

Represents the #[deprecated] and friends attributes.

Fields

level
feature
since
deprecated_since
reason

Trait Implementations

Derived Implementations

impl Debug for Stability

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Stability

fn clone(&self) -> Stability

fn clone_from(&mut self, source: &Self)

impl Decodable for Stability

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Stability, Error>

impl Encodable for Stability

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>