Struct DatabaseDsn
pub struct DatabaseDsn(/* private fields */);Implementations§
§impl DatabaseDsn
impl DatabaseDsn
pub fn new(input: impl AsRef<str>) -> Result<DatabaseDsn, DatabaseUrlError>
pub fn new(input: impl AsRef<str>) -> Result<DatabaseDsn, DatabaseUrlError>
Creates a database URL text wrapper.
§Errors
Returns [DatabaseUrlError] when text is empty or contains control characters.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Consumes the wrapper and returns the stored string.
Trait Implementations§
§impl AsRef<str> for DatabaseDsn
impl AsRef<str> for DatabaseDsn
§impl Clone for DatabaseDsn
impl Clone for DatabaseDsn
§fn clone(&self) -> DatabaseDsn
fn clone(&self) -> DatabaseDsn
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 more§impl Debug for DatabaseDsn
impl Debug for DatabaseDsn
§impl Display for DatabaseDsn
impl Display for DatabaseDsn
§impl FromStr for DatabaseDsn
impl FromStr for DatabaseDsn
§impl Hash for DatabaseDsn
impl Hash for DatabaseDsn
§impl Ord for DatabaseDsn
impl Ord for DatabaseDsn
§impl PartialEq for DatabaseDsn
impl PartialEq for DatabaseDsn
§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