#[non_exhaustive]pub struct BackendIdentity {
pub family: &'static str,
pub version: Version,
pub rfc017_stage: &'static str,
}Expand description
Minimal-identity triple for a backend. Consumers that only need
the family label + version (e.g. for metrics dimensioning) read
this rather than the full CapabilityMatrix.
#[non_exhaustive]: future stages may add fields (e.g. a
backend-assigned instance_id or a deployment_topology
hint); construct via the public constructor or struct literal on
Clone::clone of an existing value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.family: &'static strStable backend family name. "valkey", "postgres", or a
concrete string set by an out-of-tree backend. "unknown"
is the pre-RFC-018 default.
version: VersionBackend crate version at build time.
rfc017_stage: &'static strRFC-017 migration stage this backend reports itself certified
at. One of "A", "B", "C", "D", "E", "E-shipped",
or "unknown" for backends that predate the RFC-017 staging.
Implementations§
Trait Implementations§
Source§impl Clone for BackendIdentity
impl Clone for BackendIdentity
Source§fn clone(&self) -> BackendIdentity
fn clone(&self) -> BackendIdentity
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 BackendIdentity
impl RefUnwindSafe for BackendIdentity
impl Send for BackendIdentity
impl Sync for BackendIdentity
impl Unpin for BackendIdentity
impl UnsafeUnpin for BackendIdentity
impl UnwindSafe for BackendIdentity
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