Struct shuttle_common::DatabaseReadyInfo
source · pub struct DatabaseReadyInfo { /* private fields */ }Expand description
Holds the details for a database connection
Implementations§
source§impl DatabaseReadyInfo
impl DatabaseReadyInfo
pub fn new( engine: String, role_name: String, role_password: String, database_name: String, port: String, address_private: String, address_public: String ) -> Self
sourcepub fn connection_string_private(&self) -> String
pub fn connection_string_private(&self) -> String
For connecting to the db from inside the Shuttle network
sourcepub fn connection_string_public(&self, show_password: bool) -> String
pub fn connection_string_public(&self, show_password: bool) -> String
For connecting to the db from the Internet
Trait Implementations§
source§impl Clone for DatabaseReadyInfo
impl Clone for DatabaseReadyInfo
source§fn clone(&self) -> DatabaseReadyInfo
fn clone(&self) -> DatabaseReadyInfo
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 DatabaseReadyInfo
impl Debug for DatabaseReadyInfo
source§impl<'de> Deserialize<'de> for DatabaseReadyInfo
impl<'de> Deserialize<'de> for DatabaseReadyInfo
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 RefUnwindSafe for DatabaseReadyInfo
impl Send for DatabaseReadyInfo
impl Sync for DatabaseReadyInfo
impl Unpin for DatabaseReadyInfo
impl UnwindSafe for DatabaseReadyInfo
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