pub enum CompatVersion {
V14,
V15,
V16,
V17,
V18,
V19,
}Expand description
A PostgreSQL major version that rupg.compat_version can name.
Version 19 is the native answer. Versions 14 to 18 are shims over the answer of version 19. See spec/05-compatibility.md.
Variants§
V14
PostgreSQL 14.
V15
PostgreSQL 15.
V16
PostgreSQL 16.
V17
PostgreSQL 17.
V18
PostgreSQL 18.
V19
PostgreSQL 19, the native version.
Implementations§
Source§impl CompatVersion
impl CompatVersion
Sourcepub const ALL: [CompatVersion; 6]
pub const ALL: [CompatVersion; 6]
All versions, oldest first.
Sourcepub const NATIVE: CompatVersion = CompatVersion::V19
pub const NATIVE: CompatVersion = CompatVersion::V19
The native version. A shim maps the answer of this version to an older one.
Sourcepub const fn server_version_num(self) -> u32
pub const fn server_version_num(self) -> u32
The value of server_version_num for this version. The shims report the minor release of the shim pin.
Trait Implementations§
Source§impl Clone for CompatVersion
impl Clone for CompatVersion
impl Copy for CompatVersion
Source§impl Debug for CompatVersion
impl Debug for CompatVersion
Source§impl Display for CompatVersion
impl Display for CompatVersion
impl Eq for CompatVersion
Source§impl FromStr for CompatVersion
impl FromStr for CompatVersion
Source§impl Hash for CompatVersion
impl Hash for CompatVersion
Source§impl Ord for CompatVersion
impl Ord for CompatVersion
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 CompatVersion
impl PartialEq for CompatVersion
Source§impl PartialOrd for CompatVersion
impl PartialOrd for CompatVersion
impl StructuralPartialEq for CompatVersion
Auto Trait Implementations§
impl Freeze for CompatVersion
impl RefUnwindSafe for CompatVersion
impl Send for CompatVersion
impl Sync for CompatVersion
impl Unpin for CompatVersion
impl UnsafeUnpin for CompatVersion
impl UnwindSafe for CompatVersion
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