Enum osauth::services::VersionSelector
source · #[non_exhaustive]pub enum VersionSelector {
Major(u16),
Exact(ApiVersion),
Range(ApiVersion, ApiVersion),
Any,
}
Expand description
A major version selector.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Major(u16)
Match the major component.
Exact(ApiVersion)
Match the full version.
Some service have a minor component in their major versions, e.g. 2.1.
Range(ApiVersion, ApiVersion)
A range of major versions.
Any
Any major version.
Trait Implementations§
source§impl Clone for VersionSelector
impl Clone for VersionSelector
source§fn clone(&self) -> VersionSelector
fn clone(&self) -> VersionSelector
Returns a copy 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 VersionSelector
impl Debug for VersionSelector
impl Copy for VersionSelector
Auto Trait Implementations§
impl RefUnwindSafe for VersionSelector
impl Send for VersionSelector
impl Sync for VersionSelector
impl Unpin for VersionSelector
impl UnwindSafe for VersionSelector
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