pub struct RectilinearEngine { /* private fields */ }Implementations§
Source§impl RectilinearEngine
impl RectilinearEngine
Sourcepub fn new(
db_path: String,
linear_api_key: String,
gemini_api_key: Option<String>,
) -> Result<Self, RectilinearError>
pub fn new( db_path: String, linear_api_key: String, gemini_api_key: Option<String>, ) -> Result<Self, RectilinearError>
Create a new engine with an explicit database path and API keys.
Sourcepub fn get_issue(
&self,
id_or_identifier: String,
) -> Result<Option<RtIssue>, RectilinearError>
pub fn get_issue( &self, id_or_identifier: String, ) -> Result<Option<RtIssue>, RectilinearError>
Look up an issue by UUID or identifier (e.g. “CUT-123”).
Sourcepub fn get_triage_queue(
&self,
team: Option<String>,
include_completed: bool,
) -> Result<Vec<RtIssue>, RectilinearError>
pub fn get_triage_queue( &self, team: Option<String>, include_completed: bool, ) -> Result<Vec<RtIssue>, RectilinearError>
Get unprioritized issues for triage.
Sourcepub fn search_fts(
&self,
query: String,
limit: u32,
) -> Result<Vec<RtSearchResult>, RectilinearError>
pub fn search_fts( &self, query: String, limit: u32, ) -> Result<Vec<RtSearchResult>, RectilinearError>
Full-text search (FTS5, BM25 ranking). Synchronous — hits local SQLite only.
Sourcepub fn count_issues(
&self,
team: Option<String>,
) -> Result<u64, RectilinearError>
pub fn count_issues( &self, team: Option<String>, ) -> Result<u64, RectilinearError>
Count issues in the local database.
Sourcepub fn get_relations(
&self,
issue_id: String,
) -> Result<Vec<RtRelation>, RectilinearError>
pub fn get_relations( &self, issue_id: String, ) -> Result<Vec<RtRelation>, RectilinearError>
Get enriched relations for an issue.
Sourcepub fn get_active_issues(
&self,
team: String,
state_types: Vec<String>,
) -> Result<Vec<RtIssueEnriched>, RectilinearError>
pub fn get_active_issues( &self, team: String, state_types: Vec<String>, ) -> Result<Vec<RtIssueEnriched>, RectilinearError>
Get issues filtered by team and state types, enriched with blocker info.
Sourcepub async fn sync_team(
&self,
team_key: String,
full: bool,
) -> Result<u64, RectilinearError>
pub async fn sync_team( &self, team_key: String, full: bool, ) -> Result<u64, RectilinearError>
Sync issues from Linear for a team. Returns the number of issues synced.
Sourcepub async fn search_hybrid(
&self,
query: String,
team: Option<String>,
limit: u32,
) -> Result<Vec<RtSearchResult>, RectilinearError>
pub async fn search_hybrid( &self, query: String, team: Option<String>, limit: u32, ) -> Result<Vec<RtSearchResult>, RectilinearError>
Hybrid search (FTS + vector via RRF). Requires embedder for vector component.
Sourcepub async fn find_duplicates(
&self,
text: String,
team: Option<String>,
threshold: f32,
) -> Result<Vec<RtSearchResult>, RectilinearError>
pub async fn find_duplicates( &self, text: String, team: Option<String>, threshold: f32, ) -> Result<Vec<RtSearchResult>, RectilinearError>
Find potential duplicate issues by semantic similarity.
Trait Implementations§
Source§impl<UT> LiftRef<UT> for RectilinearEngine
impl<UT> LiftRef<UT> for RectilinearEngine
type LiftType = Arc<RectilinearEngine>
Source§impl<UT> LowerError<UT> for RectilinearEngine
impl<UT> LowerError<UT> for RectilinearEngine
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for RectilinearEngine
impl<UT> LowerReturn<UT> for RectilinearEngine
Source§type ReturnType = <Arc<RectilinearEngine> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<RectilinearEngine> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for RectilinearEngine
impl<UT> TypeId<UT> for RectilinearEngine
Auto Trait Implementations§
impl Freeze for RectilinearEngine
impl RefUnwindSafe for RectilinearEngine
impl Send for RectilinearEngine
impl Sync for RectilinearEngine
impl Unpin for RectilinearEngine
impl UnsafeUnpin for RectilinearEngine
impl UnwindSafe for RectilinearEngine
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