pub struct ProjectService;Expand description
Service layer for project-related business logic
Implementations§
Source§impl ProjectService
impl ProjectService
Sourcepub async fn create_project(
name: Option<String>,
path: Option<PathBuf>,
description: Option<String>,
) -> Result<Project>
pub async fn create_project( name: Option<String>, path: Option<PathBuf>, description: Option<String>, ) -> Result<Project>
Create a new project with validation and auto-detection
Sourcepub async fn list_projects(
include_archived: bool,
_tag_filter: Option<String>,
) -> Result<Vec<Project>>
pub async fn list_projects( include_archived: bool, _tag_filter: Option<String>, ) -> Result<Vec<Project>>
List projects with optional filtering
Sourcepub async fn get_project_by_path(path: &PathBuf) -> Result<Option<Project>>
pub async fn get_project_by_path(path: &PathBuf) -> Result<Option<Project>>
Get a project by path
Sourcepub async fn update_project(
project_id: i64,
name: Option<String>,
description: Option<String>,
) -> Result<bool>
pub async fn update_project( project_id: i64, name: Option<String>, description: Option<String>, ) -> Result<bool>
Update project metadata
Sourcepub async fn archive_project(project_id: i64) -> Result<bool>
pub async fn archive_project(project_id: i64) -> Result<bool>
Archive a project
Sourcepub async fn unarchive_project(project_id: i64) -> Result<bool>
pub async fn unarchive_project(project_id: i64) -> Result<bool>
Unarchive a project
Auto Trait Implementations§
impl Freeze for ProjectService
impl RefUnwindSafe for ProjectService
impl Send for ProjectService
impl Sync for ProjectService
impl Unpin for ProjectService
impl UnwindSafe for ProjectService
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> 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