pub struct Deprecation {
pub note: Option<String>,
}Expand description
A #[deprecated] annotation derived from deprecated: true, optionally
carrying the x-deprecated-reason text as the note.
Fields§
§note: Option<String>The x-deprecated-reason text, emitted as #[deprecated(note = "...")].
Trait Implementations§
Source§impl Clone for Deprecation
impl Clone for Deprecation
Source§fn clone(&self) -> Deprecation
fn clone(&self) -> Deprecation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Deprecation
impl Debug for Deprecation
Source§impl PartialEq for Deprecation
impl PartialEq for Deprecation
impl StructuralPartialEq for Deprecation
Auto Trait Implementations§
impl Freeze for Deprecation
impl RefUnwindSafe for Deprecation
impl Send for Deprecation
impl Sync for Deprecation
impl Unpin for Deprecation
impl UnsafeUnpin for Deprecation
impl UnwindSafe for Deprecation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more