pub struct DeprecationInfo {
pub since: Option<String>,
pub remove_in: Option<String>,
pub message: Option<String>,
pub replacement: Option<String>,
}Expand description
Deprecation metadata for spec features and capabilities.
Per SEP-2577 + SEP-2596, the spec now has a formal Active/Deprecated/
Removed lifecycle for features. Servers can attach this metadata to
capability declarations so clients (and tooling like manifest.rs
exporters or codegen) can surface deprecation warnings.
All fields are optional so the struct stays forward-compatible with future SEP-2596 extensions. Setting any field signals the parent feature is deprecated.
Fields§
§since: Option<String>Protocol version in which this feature became deprecated
(e.g. "2026-07-28").
remove_in: Option<String>Protocol version in which this feature is scheduled for removal.
Per SEP-2577, the minimum window after since is 12 months.
message: Option<String>Human-readable explanation, e.g. why this feature was deprecated.
replacement: Option<String>Pointer to the replacement feature or SEP, if any.
Trait Implementations§
Source§impl Clone for DeprecationInfo
impl Clone for DeprecationInfo
Source§fn clone(&self) -> DeprecationInfo
fn clone(&self) -> DeprecationInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeprecationInfo
impl Debug for DeprecationInfo
Source§impl Default for DeprecationInfo
impl Default for DeprecationInfo
Source§fn default() -> DeprecationInfo
fn default() -> DeprecationInfo
Source§impl<'de> Deserialize<'de> for DeprecationInfo
impl<'de> Deserialize<'de> for DeprecationInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeprecationInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeprecationInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DeprecationInfo
Source§impl PartialEq for DeprecationInfo
impl PartialEq for DeprecationInfo
Source§fn eq(&self, other: &DeprecationInfo) -> bool
fn eq(&self, other: &DeprecationInfo) -> bool
self and other values to be equal, and is used by ==.