pub struct Profile {Show 17 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 system_admin: SystemAdminConfig,
pub runtime: RuntimeConfig,
pub cloud: Option<CloudConfig>,
pub secrets: Option<SecretsConfig>,
pub extensions: ExtensionsConfig,
pub providers: ProviderRegistry,
pub gateway: Option<GatewayState>,
pub governance: Option<GovernanceConfig>,
}Fields§
§name: String§display_name: String§target: ProfileType§site: SiteConfig§database: DatabaseConfig§server: ServerConfig§paths: PathsConfig§security: SecurityConfig§rate_limits: RateLimitsConfig§system_admin: SystemAdminConfig§runtime: RuntimeConfig§cloud: Option<CloudConfig>§secrets: Option<SecretsConfig>§extensions: ExtensionsConfig§providers: ProviderRegistry§gateway: Option<GatewayState>§governance: Option<GovernanceConfig>Implementations§
Source§impl Profile
impl Profile
pub fn from_env(profile_name: &str, display_name: &str) -> ProfileResult<Self>
Source§impl Profile
impl Profile
pub fn is_local_trial(&self) -> bool
pub fn from_yaml(content: &str, profile_path: &Path) -> ProfileResult<Self>
pub fn to_yaml(&self) -> ProfileResult<String>
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
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
Source§impl JsonSchema for Profile
impl JsonSchema for Profile
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin 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