pub struct DatabaseAlias(/* private fields */);Expand description
A canonical, non-secret database selector.
Implementations§
Source§impl DatabaseAlias
impl DatabaseAlias
Sourcepub fn new(value: impl Into<String>) -> Result<Self, DatabaseAliasError>
pub fn new(value: impl Into<String>) -> Result<Self, DatabaseAliasError>
Validates an exact lowercase ASCII database alias.
Sourcepub fn default_alias() -> Self
pub fn default_alias() -> Self
Returns the legacy single-database alias.
Trait Implementations§
Source§impl Clone for DatabaseAlias
impl Clone for DatabaseAlias
Source§impl Debug for DatabaseAlias
impl Debug for DatabaseAlias
Source§impl Display for DatabaseAlias
impl Display for DatabaseAlias
impl Eq for DatabaseAlias
Source§impl Hash for DatabaseAlias
impl Hash for DatabaseAlias
Source§impl Ord for DatabaseAlias
impl Ord for DatabaseAlias
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 DatabaseAlias
impl PartialEq for DatabaseAlias
Source§impl PartialOrd for DatabaseAlias
impl PartialOrd for DatabaseAlias
impl StructuralPartialEq for DatabaseAlias
Auto Trait Implementations§
impl Freeze for DatabaseAlias
impl RefUnwindSafe for DatabaseAlias
impl Send for DatabaseAlias
impl Sync for DatabaseAlias
impl Unpin for DatabaseAlias
impl UnsafeUnpin for DatabaseAlias
impl UnwindSafe for DatabaseAlias
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