pub enum ProfileCredentials {
Cloud {
api_key: String,
api_secret: String,
api_url: String,
},
Enterprise {
url: String,
username: String,
password: Option<String>,
insecure: bool,
},
Database {
host: String,
port: u16,
password: Option<String>,
tls: bool,
username: String,
database: u8,
},
}Expand description
Connection credentials for different deployment types
Variants§
Trait Implementations§
Source§impl Clone for ProfileCredentials
impl Clone for ProfileCredentials
Source§fn clone(&self) -> ProfileCredentials
fn clone(&self) -> ProfileCredentials
Returns a duplicate 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 ProfileCredentials
impl Debug for ProfileCredentials
Source§impl<'de> Deserialize<'de> for ProfileCredentials
impl<'de> Deserialize<'de> for ProfileCredentials
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 ProfileCredentials
impl RefUnwindSafe for ProfileCredentials
impl Send for ProfileCredentials
impl Sync for ProfileCredentials
impl Unpin for ProfileCredentials
impl UnwindSafe for ProfileCredentials
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