Skip to main content

TeamSettings

Struct TeamSettings 

Source
pub struct TeamSettings {
Show 23 fields pub name: Option<String>, pub llm_base_url: Option<String>, pub llm_model: Option<String>, pub llm_model_summary: Option<String>, pub llm_model_guide: Option<String>, pub llm_model_flow: Option<String>, pub embed_model: Option<String>, pub enrich: Option<bool>, pub flows: Option<bool>, pub guide: Option<bool>, pub embed: Option<bool>, pub max_enrich: Option<usize>, pub max_flows: Option<usize>, pub llm_concurrency: Option<usize>, pub llm_price_in: Option<f64>, pub llm_price_out: Option<f64>, pub format: Option<String>, pub scip: Option<String>, pub auto_index: Option<bool>, pub auto_index_llm: Option<bool>, pub auto_index_minutes: Option<usize>, pub repos: Vec<String>, pub teams: Option<Vec<TeamDef>>,
}
Expand description

What everyone using an index shares; None leaves comindly’s default.

Fields§

§name: Option<String>§llm_base_url: Option<String>§llm_model: Option<String>§llm_model_summary: Option<String>

The model for one LLM task in place of llm_model.

§llm_model_guide: Option<String>§llm_model_flow: Option<String>§embed_model: Option<String>§enrich: Option<bool>§flows: Option<bool>§guide: Option<bool>§embed: Option<bool>

Search embeddings when indexing.

§max_enrich: Option<usize>

Most symbols summarised by the LLM, most central first.

§max_flows: Option<usize>

Most flows given a written walkthrough, furthest-reaching first.

§llm_concurrency: Option<usize>

LLM requests in flight at once.

§llm_price_in: Option<f64>

The LLM’s price in USD per million input tokens, to show what indexing costs.

§llm_price_out: Option<f64>

The LLM’s price in USD per million output tokens.

§format: Option<String>

What MCP tools return as text: md (default) or json; the JSON is always attached too.

§scip: Option<String>

SCIP use when indexing: auto (default), require or off.

§auto_index: Option<bool>

Re-index when a listed repository’s default branch moves on its remote.

§auto_index_llm: Option<bool>

Also run the LLM steps on automatic re-indexes, for new or changed code only.

§auto_index_minutes: Option<usize>

Minutes between checks whether a default branch moved (default 5).

§repos: Vec<String>

Clone URLs of the team’s repositories, so everyone can get the same set.

§teams: Option<Vec<TeamDef>>

Teams labelling repositories; None until set up, so an upgrade can backfill once.

Implementations§

Source§

impl TeamSettings

Source

pub fn team_list(&self) -> &[TeamDef]

Source

pub fn teams_of(&self, repo: &str) -> Vec<String>

Teams labelling repo, in the order they were defined.

Source

pub fn outside(&self, writer: &[String], repos: &[&str]) -> Option<Vec<String>>

The teams owning repos when the writer is in none of them; None inside or unlabelled.

Source

pub fn accepts(&self, writer: &[String], repos: &[&str]) -> Result<()>

Refuses a note from outside when every team owning repos is closed to them.

Source

pub fn incoming(&self, owners: &[String]) -> Incoming

The most open policy among owners for notes from outside.

Source

pub fn teams_of_member(&self, email: &str) -> Vec<String>

Teams email belongs to.

Source

pub fn set_member(&mut self, email: &str, teams: &[String]) -> Result<()>

Put email in exactly the existing teams named in teams.

Source

pub fn in_view(&self, repo: &str, selected: &[String]) -> bool

Whether repo is in view for the selected teams (empty: everything; none: unlabelled).

Source

pub fn tidy_teams(&mut self) -> Result<()>

Trim names, drop empty and duplicate teams and repeated repositories.

Source

pub fn unlabel(&mut self, repo: &str)

Remove repo from every team.

Source

pub fn label(&mut self, repo: &str, teams: &[String])

Set exactly teams on repo, creating teams that don’t exist yet.

Source

pub fn backfill( &self, repos: &[String], members: &[String], ) -> Option<TeamSettings>

A first team named after the org with these repos and members, when teams were never set up.

Trait Implementations§

Source§

impl Clone for TeamSettings

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TeamSettings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TeamSettings

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TeamSettings

Source§

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 PartialEq for TeamSettings

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TeamSettings

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TeamSettings

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.