pub enum BackendKind {
Sqlite,
Mysql,
Mongodb,
Postgresql,
}Expand description
Stable identity for one primary database backend supported by Pharos.
§Variants
Sqlite: SupportedBackendKindvariant.Mysql: SupportedBackendKindvariant.Mongodb: SupportedBackendKindvariant.Postgresql: SupportedBackendKindvariant.
§Examples
ⓘ
let _ = pharos_runtime_integrations::backend::BackendKind::Sqlite;§Related
crate::backendfor constructors, helpers, and neighboring runtime types.
Variants§
Implementations§
Source§impl BackendKind
impl BackendKind
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Returns the stable config and registry name for the backend.
§Examples
ⓘ
let _ = pharos_runtime_integrations::backend::fn;§Related
crate::backendfor the surrounding module surface.
Sourcepub fn parse(name: &str) -> Result<Self, BackendError>
pub fn parse(name: &str) -> Result<Self, BackendError>
Resolves one backend kind from its stable config or registry name.
§Parameters
name: Input consumed by [crate::backend::parse].
§Returns
Returns the successful value produced by [crate::backend::parse] or an error when the operation fails.
§Errors
Returns an error value when [crate::backend::parse] cannot complete successfully.
§Examples
ⓘ
let _result = pharos_runtime_integrations::backend::parse("name");§Related
crate::backendfor adjacent helpers that share the same runtime surface.
Trait Implementations§
Source§impl Clone for BackendKind
impl Clone for BackendKind
Source§fn clone(&self) -> BackendKind
fn clone(&self) -> BackendKind
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 moreSource§impl Debug for BackendKind
impl Debug for BackendKind
Source§impl Hash for BackendKind
impl Hash for BackendKind
Source§impl Ord for BackendKind
impl Ord for BackendKind
Source§fn cmp(&self, other: &BackendKind) -> Ordering
fn cmp(&self, other: &BackendKind) -> 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
Source§impl PartialEq for BackendKind
impl PartialEq for BackendKind
Source§fn eq(&self, other: &BackendKind) -> bool
fn eq(&self, other: &BackendKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BackendKind
impl PartialOrd for BackendKind
impl Copy for BackendKind
impl Eq for BackendKind
impl StructuralPartialEq for BackendKind
Auto Trait Implementations§
impl Freeze for BackendKind
impl RefUnwindSafe for BackendKind
impl Send for BackendKind
impl Sync for BackendKind
impl Unpin for BackendKind
impl UnsafeUnpin for BackendKind
impl UnwindSafe for BackendKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.