pub struct ResolvedVersion {
pub version: ApiVersion,
pub found: bool,
pub deprecated: bool,
pub deprecation_message: Option<String>,
pub sunset: Option<String>,
}Expand description
Result of version resolution
Fields§
§version: ApiVersionThe resolved version
found: boolWhether the version was found
deprecated: boolWhether the version is deprecated
deprecation_message: Option<String>Deprecation message
sunset: Option<String>Sunset date
Implementations§
Source§impl ResolvedVersion
impl ResolvedVersion
Sourcepub fn response_headers(&self) -> HashMap<String, String>
pub fn response_headers(&self) -> HashMap<String, String>
Get HTTP headers for this resolved version
Trait Implementations§
Source§impl Clone for ResolvedVersion
impl Clone for ResolvedVersion
Source§fn clone(&self) -> ResolvedVersion
fn clone(&self) -> ResolvedVersion
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 moreAuto Trait Implementations§
impl Freeze for ResolvedVersion
impl RefUnwindSafe for ResolvedVersion
impl Send for ResolvedVersion
impl Sync for ResolvedVersion
impl Unpin for ResolvedVersion
impl UnwindSafe for ResolvedVersion
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