pub struct Profile {Show 13 fields
pub name: String,
pub display_name: String,
pub target: ProfileType,
pub site: SiteConfig,
pub database: DatabaseConfig,
pub server: ServerConfig,
pub paths: PathsConfig,
pub security: SecurityConfig,
pub rate_limits: RateLimitsConfig,
pub runtime: RuntimeConfig,
pub cloud: Option<CloudConfig>,
pub secrets: Option<SecretsConfig>,
pub extensions: ExtensionsConfig,
}Fields§
§name: String§display_name: String§target: ProfileType§site: SiteConfig§database: DatabaseConfig§server: ServerConfig§paths: PathsConfig§security: SecurityConfig§rate_limits: RateLimitsConfig§runtime: RuntimeConfig§cloud: Option<CloudConfig>§secrets: Option<SecretsConfig>§extensions: ExtensionsConfigImplementations§
Source§impl Profile
impl Profile
pub fn parse(content: &str, profile_path: &Path) -> Result<Self>
pub fn to_yaml(&self) -> Result<String>
pub fn list_available(services_path: &Path) -> Vec<String>
pub fn save(&self, services_path: &Path) -> Result<()>
pub fn profile_style(&self) -> ProfileStyle
pub fn mask_secret(value: &str, visible_chars: usize) -> String
pub fn mask_database_url(url: &str) -> String
pub fn is_masked_database_url(url: &str) -> bool
pub fn credentials_path(&self, profile_dir: Option<&Path>) -> Result<PathBuf>
pub fn tenants_path(&self, profile_dir: Option<&Path>) -> Result<PathBuf>
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