pub struct DatabaseHost(/* private fields */);Implementations§
Source§impl DatabaseHost
impl DatabaseHost
Sourcepub fn new(input: impl AsRef<str>) -> Result<DatabaseHost, DatabaseUrlError>
pub fn new(input: impl AsRef<str>) -> Result<DatabaseHost, 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 DatabaseHost
impl AsRef<str> for DatabaseHost
Source§impl Clone for DatabaseHost
impl Clone for DatabaseHost
Source§fn clone(&self) -> DatabaseHost
fn clone(&self) -> DatabaseHost
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 DatabaseHost
impl Debug for DatabaseHost
Source§impl Display for DatabaseHost
impl Display for DatabaseHost
Source§impl FromStr for DatabaseHost
impl FromStr for DatabaseHost
Source§type Err = DatabaseUrlError
type Err = DatabaseUrlError
The associated error which can be returned from parsing.
Source§fn from_str(input: &str) -> Result<DatabaseHost, <DatabaseHost as FromStr>::Err>
fn from_str(input: &str) -> Result<DatabaseHost, <DatabaseHost as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for DatabaseHost
impl Hash for DatabaseHost
Source§impl Ord for DatabaseHost
impl Ord for DatabaseHost
Source§fn cmp(&self, other: &DatabaseHost) -> Ordering
fn cmp(&self, other: &DatabaseHost) -> 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 DatabaseHost
impl PartialEq for DatabaseHost
Source§fn eq(&self, other: &DatabaseHost) -> bool
fn eq(&self, other: &DatabaseHost) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DatabaseHost
impl PartialOrd for DatabaseHost
impl Eq for DatabaseHost
impl StructuralPartialEq for DatabaseHost
Auto Trait Implementations§
impl Freeze for DatabaseHost
impl RefUnwindSafe for DatabaseHost
impl Send for DatabaseHost
impl Sync for DatabaseHost
impl Unpin for DatabaseHost
impl UnsafeUnpin for DatabaseHost
impl UnwindSafe for DatabaseHost
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