pub struct DeprecationStatus {
pub metadata: Map<String, Value>,
pub reason: Option<String>,
pub since: CoreSemanticVersionString,
}Expand description
DeprecationStatus
JSON schema
{
"type": "object",
"required": [
"since"
],
"properties": {
"metadata": {
"description": "Arbitrary data created by extension author.",
"type": "object"
},
"reason": {
"description": "Description of the deprecation (for documentation only).",
"type": "string"
},
"since": {
"description": "Version since when the item is deprecated.",
"$ref": "#/$defs/coreSemanticVersionString"
}
},
"additionalProperties": false
}Fields§
§metadata: Map<String, Value>Arbitrary data created by extension author.
reason: Option<String>Description of the deprecation (for documentation only).
since: CoreSemanticVersionStringVersion since when the item is deprecated.
Implementations§
Source§impl DeprecationStatus
impl DeprecationStatus
pub fn builder() -> DeprecationStatus
Trait Implementations§
Source§impl Clone for DeprecationStatus
impl Clone for DeprecationStatus
Source§fn clone(&self) -> DeprecationStatus
fn clone(&self) -> DeprecationStatus
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 DeprecationStatus
impl Debug for DeprecationStatus
Source§impl<'de> Deserialize<'de> for DeprecationStatus
impl<'de> Deserialize<'de> for DeprecationStatus
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
Source§impl From<DeprecationStatus> for DeprecationStatus
impl From<DeprecationStatus> for DeprecationStatus
Source§fn from(value: DeprecationStatus) -> Self
fn from(value: DeprecationStatus) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeprecationStatus
impl PartialEq for DeprecationStatus
Source§impl Serialize for DeprecationStatus
impl Serialize for DeprecationStatus
impl StructuralPartialEq for DeprecationStatus
Source§impl TryFrom<DeprecationStatus> for DeprecationStatus
impl TryFrom<DeprecationStatus> for DeprecationStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DeprecationStatus) -> Result<Self, ConversionError>
fn try_from(value: DeprecationStatus) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DeprecationStatus
impl RefUnwindSafe for DeprecationStatus
impl Send for DeprecationStatus
impl Sync for DeprecationStatus
impl Unpin for DeprecationStatus
impl UnsafeUnpin for DeprecationStatus
impl UnwindSafe for DeprecationStatus
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