pub struct ApiVersion {
pub version: String,
pub sunset: Option<Option<String>>,
pub next_version: Option<Box<ApiNextVersion>>,
}Expand description
ApiVersion : Version of the API. The version is used to indicate the version of the API that is being used. The version is in semantic versioning format, e.g. "3.0.0" and it is a version released at osdm.io.
Fields§
§version: StringVersion of the API
sunset: Option<Option<String>>Date after which the API version will no longer be available.
next_version: Option<Box<ApiNextVersion>>Implementations§
Source§impl ApiVersion
impl ApiVersion
Sourcepub fn new(version: String) -> ApiVersion
pub fn new(version: String) -> ApiVersion
Version of the API. The version is used to indicate the version of the API that is being used. The version is in semantic versioning format, e.g. "3.0.0" and it is a version released at osdm.io.
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 Default for ApiVersion
impl Default for ApiVersion
Source§fn default() -> ApiVersion
fn default() -> ApiVersion
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for ApiVersion
impl PartialEq for ApiVersion
Source§impl Serialize for ApiVersion
impl Serialize for ApiVersion
impl StructuralPartialEq for ApiVersion
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