Struct connection_string::JdbcString
source · pub struct JdbcString { /* private fields */ }
Expand description
Implementations§
source§impl JdbcString
impl JdbcString
sourcepub fn sub_protocol(&self) -> &str
pub fn sub_protocol(&self) -> &str
Access the connection sub-protocol
sourcepub fn server_name(&self) -> Option<&str>
pub fn server_name(&self) -> Option<&str>
Access the connection server name
sourcepub fn instance_name(&self) -> Option<&str>
pub fn instance_name(&self) -> Option<&str>
Get a reference to the connection’s instance name.
sourcepub fn properties(&self) -> &HashMap<String, String>
pub fn properties(&self) -> &HashMap<String, String>
Access the connection’s key-value pairs
sourcepub fn properties_mut(&mut self) -> &mut HashMap<String, String>
pub fn properties_mut(&mut self) -> &mut HashMap<String, String>
Mutably access the connection’s key-value pairs
sourcepub fn keys(&self) -> impl ExactSizeIterator<Item = &str> + '_
pub fn keys(&self) -> impl ExactSizeIterator<Item = &str> + '_
Get an iterator over all keys from the connection’s key-value pairs
Trait Implementations§
source§impl Clone for JdbcString
impl Clone for JdbcString
source§fn clone(&self) -> JdbcString
fn clone(&self) -> JdbcString
Returns a copy 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 moresource§impl Debug for JdbcString
impl Debug for JdbcString
source§impl Display for JdbcString
impl Display for JdbcString
source§impl FromStr for JdbcString
impl FromStr for JdbcString
source§impl PartialEq for JdbcString
impl PartialEq for JdbcString
source§fn eq(&self, other: &JdbcString) -> bool
fn eq(&self, other: &JdbcString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for JdbcString
impl StructuralEq for JdbcString
impl StructuralPartialEq for JdbcString
Auto Trait Implementations§
impl RefUnwindSafe for JdbcString
impl Send for JdbcString
impl Sync for JdbcString
impl Unpin for JdbcString
impl UnwindSafe for JdbcString
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