pub struct TracevaultConfig {
pub agent: String,
pub server_url: Option<String>,
pub api_key: Option<String>,
pub org_slug: Option<String>,
pub repo_id: Option<String>,
}Fields§
§agent: String§server_url: Option<String>§api_key: Option<String>§org_slug: Option<String>§repo_id: Option<String>Implementations§
Source§impl TracevaultConfig
impl TracevaultConfig
pub fn config_dir(project_root: &Path) -> PathBuf
pub fn config_path(project_root: &Path) -> PathBuf
Sourcepub fn ensure_gitignore(config_dir: &Path) -> Result<()>
pub fn ensure_gitignore(config_dir: &Path) -> Result<()>
Ensure a .gitignore exists inside config_dir (a .tracevault/ dir)
so runtime artifacts are ignored no matter where the directory was
created — including the per-subproject .tracevault/ dirs the stream
hook may create from a nested working directory. Idempotent: an existing
.gitignore is never overwritten. Best-effort; callers may ignore the
result (a failure must never break the hook).
pub fn to_toml(&self) -> String
Trait Implementations§
Source§impl Debug for TracevaultConfig
impl Debug for TracevaultConfig
Source§impl Default for TracevaultConfig
impl Default for TracevaultConfig
Source§impl<'de> Deserialize<'de> for TracevaultConfig
impl<'de> Deserialize<'de> for TracevaultConfig
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 TracevaultConfig
impl RefUnwindSafe for TracevaultConfig
impl Send for TracevaultConfig
impl Sync for TracevaultConfig
impl Unpin for TracevaultConfig
impl UnsafeUnpin for TracevaultConfig
impl UnwindSafe for TracevaultConfig
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