pub struct LocalProjectService<RS: RepoService, ES: EcosystemService, SS: SourceService, FS: RootFacetService, OS: OutputService> {
pub repo_service: RS,
pub ecosystem_service: ES,
pub source_service: SS,
pub facet_service: FS,
pub output_service: OS,
}Expand description
The LocalProjectService struct provides an implementation of the ProjectService trait for initializing
and managing a Skootrs project on the local machine.
Fields§
§repo_service: RS§ecosystem_service: ES§source_service: SS§facet_service: FS§output_service: OSTrait Implementations§
Source§impl<RS: Debug + RepoService, ES: Debug + EcosystemService, SS: Debug + SourceService, FS: Debug + RootFacetService, OS: Debug + OutputService> Debug for LocalProjectService<RS, ES, SS, FS, OS>
impl<RS: Debug + RepoService, ES: Debug + EcosystemService, SS: Debug + SourceService, FS: Debug + RootFacetService, OS: Debug + OutputService> Debug for LocalProjectService<RS, ES, SS, FS, OS>
Source§impl<RS, ES, SS, FS, OS> ProjectService for LocalProjectService<RS, ES, SS, FS, OS>where
RS: RepoService + Send + Sync,
ES: EcosystemService + Send + Sync,
SS: SourceService + Send + Sync,
FS: RootFacetService + Send + Sync,
OS: OutputService + Send + Sync,
impl<RS, ES, SS, FS, OS> ProjectService for LocalProjectService<RS, ES, SS, FS, OS>where
RS: RepoService + Send + Sync,
ES: EcosystemService + Send + Sync,
SS: SourceService + Send + Sync,
FS: RootFacetService + Send + Sync,
OS: OutputService + Send + Sync,
Source§async fn initialize(
&self,
params: ProjectCreateParams,
) -> Result<InitializedProject, SkootError>
async fn initialize( &self, params: ProjectCreateParams, ) -> Result<InitializedProject, SkootError>
Initializes a Skootrs project. Read more
Source§async fn get(
&self,
params: ProjectGetParams,
) -> Result<InitializedProject, SkootError>
async fn get( &self, params: ProjectGetParams, ) -> Result<InitializedProject, SkootError>
Gets an initialized project. Read more
Source§async fn get_facet_with_content(
&self,
params: FacetGetParams,
) -> Result<InitializedFacet, SkootError>
async fn get_facet_with_content( &self, params: FacetGetParams, ) -> Result<InitializedFacet, SkootError>
Gets a facet along with its content from an initialized project. Read more
async fn update( &self, params: ProjectUpdateParams, ) -> Result<InitializedProject, SkootError>
Source§async fn outputs_list(
&self,
params: ProjectOutputsListParams,
) -> Result<Vec<ProjectOutputReference>, SkootError>
async fn outputs_list( &self, params: ProjectOutputsListParams, ) -> Result<Vec<ProjectOutputReference>, SkootError>
Lists the outputs of an initialized project. Read more
Source§async fn list_facets(
&self,
params: ProjectGetParams,
) -> Result<Vec<FacetMapKey>, SkootError>
async fn list_facets( &self, params: ProjectGetParams, ) -> Result<Vec<FacetMapKey>, SkootError>
Lists the facets of an initialized project. Read more
async fn output_get( &self, params: ProjectOutputGetParams, ) -> Result<ProjectOutput, SkootError>
Source§async fn archive(
&self,
params: ProjectArchiveParams,
) -> Result<String, SkootError>
async fn archive( &self, params: ProjectArchiveParams, ) -> Result<String, SkootError>
Archives an initialized project. Read more
Auto Trait Implementations§
impl<RS, ES, SS, FS, OS> Freeze for LocalProjectService<RS, ES, SS, FS, OS>
impl<RS, ES, SS, FS, OS> RefUnwindSafe for LocalProjectService<RS, ES, SS, FS, OS>where
RS: RefUnwindSafe,
ES: RefUnwindSafe,
SS: RefUnwindSafe,
FS: RefUnwindSafe,
OS: RefUnwindSafe,
impl<RS, ES, SS, FS, OS> Send for LocalProjectService<RS, ES, SS, FS, OS>
impl<RS, ES, SS, FS, OS> Sync for LocalProjectService<RS, ES, SS, FS, OS>
impl<RS, ES, SS, FS, OS> Unpin for LocalProjectService<RS, ES, SS, FS, OS>
impl<RS, ES, SS, FS, OS> UnwindSafe for LocalProjectService<RS, ES, SS, FS, OS>
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