pub struct ApiVersion {
pub version: String,
pub deprecated: bool,
pub deprecation_message: Option<String>,
pub sunset_date: Option<String>,
pub is_default: bool,
}
Expand description
API version configuration
Fields§
§version: String
Version identifier (e.g., “v1”, “v2”, “1.0”, “2024-01-01”)
deprecated: bool
Whether this version is deprecated
deprecation_message: Option<String>
Deprecation warning message
sunset_date: Option<String>
Date when this version will be removed (ISO 8601)
is_default: bool
Whether this version is the default
Trait Implementations§
Source§impl Clone for ApiVersion
impl Clone for ApiVersion
Source§fn clone(&self) -> ApiVersion
fn clone(&self) -> ApiVersion
Returns a duplicate of the value. Read more
1.0.0 · 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 ApiVersion
impl Debug for ApiVersion
Source§impl<'de> Deserialize<'de> for ApiVersion
impl<'de> Deserialize<'de> for ApiVersion
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
Auto Trait Implementations§
impl Freeze for ApiVersion
impl RefUnwindSafe for ApiVersion
impl Send for ApiVersion
impl Sync for ApiVersion
impl Unpin for ApiVersion
impl UnwindSafe for ApiVersion
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