pub struct Profile {
pub deployment_type: DeploymentType,
pub credentials: ProfileCredentials,
pub files_api_key: Option<String>,
pub resilience: Option<ResilienceConfig>,
}Expand description
Individual profile configuration
Fields§
§deployment_type: DeploymentTypeType of deployment this profile connects to
credentials: ProfileCredentialsConnection credentials (flattened into the profile)
files_api_key: Option<String>Files.com API key for this profile (overrides global setting) Supports keyring: prefix for secure storage.
resilience: Option<ResilienceConfig>Resilience configuration for this profile
Implementations§
Source§impl Profile
impl Profile
Sourcepub fn cloud_credentials(&self) -> Option<(&str, &str, &str)>
pub fn cloud_credentials(&self) -> Option<(&str, &str, &str)>
Returns Cloud credentials if this is a Cloud profile
Sourcepub fn enterprise_credentials(&self) -> Option<(&str, &str, Option<&str>, bool)>
pub fn enterprise_credentials(&self) -> Option<(&str, &str, Option<&str>, bool)>
Returns Enterprise credentials if this is an Enterprise profile
Sourcepub fn has_password(&self) -> bool
pub fn has_password(&self) -> bool
Check if this profile has a stored password
Sourcepub fn resolve_cloud_credentials(
&self,
) -> Result<Option<(String, String, String)>>
pub fn resolve_cloud_credentials( &self, ) -> Result<Option<(String, String, String)>>
Get resolved Cloud credentials (with keyring support)
Sourcepub fn resolve_enterprise_credentials(
&self,
) -> Result<Option<(String, String, Option<String>, bool)>>
pub fn resolve_enterprise_credentials( &self, ) -> Result<Option<(String, String, Option<String>, bool)>>
Get resolved Enterprise credentials (with keyring support)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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 Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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