pub struct VersionDef {
pub ident: String,
pub value: String,
}Expand description
One member of the API version enum.
Fields§
§ident: StringStable machine name of the version: the enum member ident.
value: StringDisplay value of the version: the @rename("...") argument, or the ident.
Trait Implementations§
Source§impl Clone for VersionDef
impl Clone for VersionDef
Source§impl Debug for VersionDef
impl Debug for VersionDef
Source§impl<'de> Deserialize<'de> for VersionDef
impl<'de> Deserialize<'de> for VersionDef
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
impl Eq for VersionDef
Source§impl PartialEq for VersionDef
impl PartialEq for VersionDef
Source§impl Serialize for VersionDef
impl Serialize for VersionDef
impl StructuralPartialEq for VersionDef
Auto Trait Implementations§
impl Freeze for VersionDef
impl RefUnwindSafe for VersionDef
impl Send for VersionDef
impl Sync for VersionDef
impl Unpin for VersionDef
impl UnsafeUnpin for VersionDef
impl UnwindSafe for VersionDef
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
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§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
Compare self to
key and return true if they are equal.