pub struct Secrets {
pub jwt_secret: String,
pub database_url: String,
pub database_write_url: Option<String>,
pub external_database_url: Option<String>,
pub internal_database_url: Option<String>,
pub sync_token: Option<String>,
pub gemini: Option<String>,
pub anthropic: Option<String>,
pub openai: Option<String>,
pub github: Option<String>,
pub custom: HashMap<String, String>,
}Fields§
§jwt_secret: String§database_url: String§database_write_url: Option<String>§external_database_url: Option<String>§internal_database_url: Option<String>§sync_token: Option<String>§gemini: Option<String>§anthropic: Option<String>§openai: Option<String>§github: Option<String>§custom: HashMap<String, String>Implementations§
Source§impl Secrets
impl Secrets
pub fn parse(content: &str) -> Result<Self>
pub fn load_from_path(secrets_path: &Path) -> Result<Self>
pub fn effective_database_url(&self, external_db_access: bool) -> &str
pub const fn has_ai_provider(&self) -> bool
pub fn get(&self, key: &str) -> Option<&String>
pub fn log_configured_providers(&self)
pub fn custom_env_vars(&self) -> Vec<(String, &str)>
pub fn custom_env_var_names(&self) -> Vec<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Secrets
impl<'de> Deserialize<'de> for Secrets
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 Secrets
impl RefUnwindSafe for Secrets
impl Send for Secrets
impl Sync for Secrets
impl Unpin for Secrets
impl UnsafeUnpin for Secrets
impl UnwindSafe for Secrets
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