pub struct SpecService;Expand description
SpecFlow service for building and querying SpecFlowGraphV2.
Implementations§
Source§impl SpecService
impl SpecService
Sourcepub fn from_context(ctx: &AnalysisContext) -> Result<SpecFlowData, SpecError>
pub fn from_context(ctx: &AnalysisContext) -> Result<SpecFlowData, SpecError>
Build SpecFlowData from an existing AnalysisContext.
This is the preferred method for server mode where AnalysisContext is already loaded and cached.
Sourcepub fn load(&self, project: &Project) -> Result<SpecFlowData, SpecError>
pub fn load(&self, project: &Project) -> Result<SpecFlowData, SpecError>
Load SpecFlowGraphV2 from a project.
Note: This rebuilds AnalysisContext from scratch. For server mode,
prefer from_context() which reuses the existing context.
Sourcepub fn from_path(&self, path: &Path) -> Result<SpecFlowData, SpecError>
pub fn from_path(&self, path: &Path) -> Result<SpecFlowData, SpecError>
Load SpecFlowGraphV2 from a path.
Sourcepub fn show(&self, project: &Project) -> Result<SpecShowResponse, SpecError>
pub fn show(&self, project: &Project) -> Result<SpecShowResponse, SpecError>
Get spec show response (groups, relations, stats).
Sourcepub fn specs_in_group(
&self,
project: &Project,
group: &str,
) -> Result<Vec<SpecInfo>, SpecError>
pub fn specs_in_group( &self, project: &Project, group: &str, ) -> Result<Vec<SpecInfo>, SpecError>
Get specs in a group.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpecService
impl RefUnwindSafe for SpecService
impl Send for SpecService
impl Sync for SpecService
impl Unpin for SpecService
impl UnsafeUnpin for SpecService
impl UnwindSafe for SpecService
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more