Struct askar_storage::Options
source · pub struct Options<'a> {
pub scheme: Cow<'a, str>,
pub user: Cow<'a, str>,
pub password: Cow<'a, str>,
pub host: Cow<'a, str>,
pub path: Cow<'a, str>,
pub query: HashMap<String, String>,
pub fragment: Cow<'a, str>,
}Expand description
Parsed representation of database connection URI
Fields§
§scheme: Cow<'a, str>The URI schema
user: Cow<'a, str>The authenticating user name
password: Cow<'a, str>The authenticating user password
host: Cow<'a, str>The host name
path: Cow<'a, str>The path component
query: HashMap<String, String>The query component
fragment: Cow<'a, str>The fragment component
Implementations§
Trait Implementations§
source§impl<'a> IntoOptions<'a> for Options<'a>
impl<'a> IntoOptions<'a> for Options<'a>
source§impl<'a> PartialEq for Options<'a>
impl<'a> PartialEq for Options<'a>
impl<'a> Eq for Options<'a>
impl<'a> StructuralPartialEq for Options<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.