pub struct ApiContractVersion { /* private fields */ }Implementations§
Source§impl ApiContractVersion
impl ApiContractVersion
pub const V1_7: Self
pub const V1_8: Self
pub const CURRENT: Self = Self::V1_8
pub const MINIMUM_SUPPORTED: Self = Self::V1_7
pub const fn as_str(self) -> &'static str
Sourcepub fn resolve_observed(value: &str) -> Result<Self, ApiVersionParseError>
pub fn resolve_observed(value: &str) -> Result<Self, ApiVersionParseError>
Resolve an observed response contract to the newest contract this SDK can safely request. Newer minor versions remain compatible through Keygen’s version pinning, while a different major version does not.
Trait Implementations§
Source§impl Clone for ApiContractVersion
impl Clone for ApiContractVersion
Source§fn clone(&self) -> ApiContractVersion
fn clone(&self) -> ApiContractVersion
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 moreimpl Copy for ApiContractVersion
Source§impl Debug for ApiContractVersion
impl Debug for ApiContractVersion
Source§impl Default for ApiContractVersion
impl Default for ApiContractVersion
Source§impl<'de> Deserialize<'de> for ApiContractVersion
impl<'de> Deserialize<'de> for ApiContractVersion
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 Display for ApiContractVersion
impl Display for ApiContractVersion
impl Eq for ApiContractVersion
Source§impl FromStr for ApiContractVersion
impl FromStr for ApiContractVersion
Source§impl Hash for ApiContractVersion
impl Hash for ApiContractVersion
Source§impl Ord for ApiContractVersion
impl Ord for ApiContractVersion
Source§fn cmp(&self, other: &ApiContractVersion) -> Ordering
fn cmp(&self, other: &ApiContractVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ApiContractVersion
impl PartialEq for ApiContractVersion
Source§impl PartialOrd for ApiContractVersion
impl PartialOrd for ApiContractVersion
Source§impl Serialize for ApiContractVersion
impl Serialize for ApiContractVersion
impl StructuralPartialEq for ApiContractVersion
Source§impl TryFrom<&str> for ApiContractVersion
impl TryFrom<&str> for ApiContractVersion
Auto Trait Implementations§
impl Freeze for ApiContractVersion
impl RefUnwindSafe for ApiContractVersion
impl Send for ApiContractVersion
impl Sync for ApiContractVersion
impl Unpin for ApiContractVersion
impl UnsafeUnpin for ApiContractVersion
impl UnwindSafe for ApiContractVersion
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