pub struct DatabaseInfoBeta { /* private fields */ }
Expand description
Holds the data for building a database connection string on the Beta platform.
Implementations§
Source§impl DatabaseInfoBeta
impl DatabaseInfoBeta
pub fn new( engine: String, role_name: String, role_password: String, database_name: String, port: String, hostname: String, instance_name: Option<String>, ) -> Self
Sourcepub fn connection_string(&self, show_password: bool) -> String
pub fn connection_string(&self, show_password: bool) -> String
For connecting to the database.
pub fn role_name(&self) -> String
pub fn database_name(&self) -> String
pub fn instance_name(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for DatabaseInfoBeta
impl Clone for DatabaseInfoBeta
Source§fn clone(&self) -> DatabaseInfoBeta
fn clone(&self) -> DatabaseInfoBeta
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 DatabaseInfoBeta
impl Debug for DatabaseInfoBeta
Source§impl<'de> Deserialize<'de> for DatabaseInfoBeta
impl<'de> Deserialize<'de> for DatabaseInfoBeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DatabaseInfoBeta
impl RefUnwindSafe for DatabaseInfoBeta
impl Send for DatabaseInfoBeta
impl Sync for DatabaseInfoBeta
impl Unpin for DatabaseInfoBeta
impl UnwindSafe for DatabaseInfoBeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)