pub struct RepoConfig {
pub path: PathBuf,
pub agent: AgentKind,
pub channel: Option<String>,
pub allowed_tools: Vec<String>,
pub model: Option<String>,
}Fields§
§path: PathBuf§agent: AgentKind§channel: Option<String>Custom Slack channel name. Defaults to the repo key name (dots replaced with hyphens).
allowed_tools: Vec<String>§model: Option<String>Implementations§
Source§impl RepoConfig
impl RepoConfig
Sourcepub fn merged_tools(&self, defaults: &DefaultsConfig) -> Vec<String>
pub fn merged_tools(&self, defaults: &DefaultsConfig) -> Vec<String>
Returns allowed_tools merged with the global defaults.
Sourcepub fn resolved_model(&self, defaults: &DefaultsConfig) -> String
pub fn resolved_model(&self, defaults: &DefaultsConfig) -> String
Returns the model for this repo: repo override > global default > DEFAULT_MODEL.
Trait Implementations§
Source§impl Clone for RepoConfig
impl Clone for RepoConfig
Source§fn clone(&self) -> RepoConfig
fn clone(&self) -> RepoConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RepoConfig
impl Debug for RepoConfig
Source§impl<'de> Deserialize<'de> for RepoConfig
impl<'de> Deserialize<'de> for RepoConfig
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 RepoConfig
impl RefUnwindSafe for RepoConfig
impl Send for RepoConfig
impl Sync for RepoConfig
impl Unpin for RepoConfig
impl UnsafeUnpin for RepoConfig
impl UnwindSafe for RepoConfig
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