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§impl Serialize for DeprecationInfo
impl Serialize for DeprecationInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for DeprecationInfo
Auto Trait Implementations§
impl Freeze for DeprecationInfo
impl RefUnwindSafe for DeprecationInfo
impl Send for DeprecationInfo
impl Sync for DeprecationInfo
impl Unpin for DeprecationInfo
impl UnsafeUnpin for DeprecationInfo
impl UnwindSafe for DeprecationInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.