pub struct DatabaseDsn(/* private fields */);Implementations§
Source§impl DatabaseDsn
impl DatabaseDsn
Sourcepub fn new(input: impl AsRef<str>) -> Result<Self, DatabaseUrlError>
pub fn new(input: impl AsRef<str>) -> Result<Self, DatabaseUrlError>
Creates a database URL text wrapper.
§Errors
Returns DatabaseUrlError when text is empty or contains control characters.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the wrapper and returns the stored string.
Trait Implementations§
Source§impl AsRef<str> for DatabaseDsn
impl AsRef<str> for DatabaseDsn
Source§impl Clone for DatabaseDsn
impl Clone for DatabaseDsn
Source§fn clone(&self) -> DatabaseDsn
fn clone(&self) -> DatabaseDsn
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 DatabaseDsn
impl Debug for DatabaseDsn
Source§impl Display for DatabaseDsn
impl Display for DatabaseDsn
Source§impl FromStr for DatabaseDsn
impl FromStr for DatabaseDsn
Source§impl Hash for DatabaseDsn
impl Hash for DatabaseDsn
Source§impl Ord for DatabaseDsn
impl Ord for DatabaseDsn
Source§fn cmp(&self, other: &DatabaseDsn) -> Ordering
fn cmp(&self, other: &DatabaseDsn) -> 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 DatabaseDsn
impl PartialEq for DatabaseDsn
Source§fn eq(&self, other: &DatabaseDsn) -> bool
fn eq(&self, other: &DatabaseDsn) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DatabaseDsn
impl PartialOrd for DatabaseDsn
impl Eq for DatabaseDsn
impl StructuralPartialEq for DatabaseDsn
Auto Trait Implementations§
impl Freeze for DatabaseDsn
impl RefUnwindSafe for DatabaseDsn
impl Send for DatabaseDsn
impl Sync for DatabaseDsn
impl Unpin for DatabaseDsn
impl UnsafeUnpin for DatabaseDsn
impl UnwindSafe for DatabaseDsn
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