pub struct DatabaseScheme(/* private fields */);Expand description
A database URL scheme such as postgresql or sqlite.
Implementations§
Source§impl DatabaseScheme
impl DatabaseScheme
Sourcepub fn new(input: impl AsRef<str>) -> Result<DatabaseScheme, DatabaseUrlError>
pub fn new(input: impl AsRef<str>) -> Result<DatabaseScheme, DatabaseUrlError>
Creates a scheme from a conservative URI scheme label.
§Errors
Returns DatabaseUrlError when the scheme is empty or malformed.
Trait Implementations§
Source§impl Clone for DatabaseScheme
impl Clone for DatabaseScheme
Source§fn clone(&self) -> DatabaseScheme
fn clone(&self) -> DatabaseScheme
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 DatabaseScheme
impl Debug for DatabaseScheme
Source§impl Display for DatabaseScheme
impl Display for DatabaseScheme
Source§impl Hash for DatabaseScheme
impl Hash for DatabaseScheme
Source§impl Ord for DatabaseScheme
impl Ord for DatabaseScheme
Source§fn cmp(&self, other: &DatabaseScheme) -> Ordering
fn cmp(&self, other: &DatabaseScheme) -> 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 DatabaseScheme
impl PartialEq for DatabaseScheme
Source§fn eq(&self, other: &DatabaseScheme) -> bool
fn eq(&self, other: &DatabaseScheme) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DatabaseScheme
impl PartialOrd for DatabaseScheme
impl Eq for DatabaseScheme
impl StructuralPartialEq for DatabaseScheme
Auto Trait Implementations§
impl Freeze for DatabaseScheme
impl RefUnwindSafe for DatabaseScheme
impl Send for DatabaseScheme
impl Sync for DatabaseScheme
impl Unpin for DatabaseScheme
impl UnsafeUnpin for DatabaseScheme
impl UnwindSafe for DatabaseScheme
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