pub struct DocumentCreationService { /* private fields */ }
Expand description
Service for creating new documents with proper defaults and validation
Implementations§
Source§impl DocumentCreationService
impl DocumentCreationService
Sourcepub fn new<P: AsRef<Path>>(workspace_dir: P) -> Self
pub fn new<P: AsRef<Path>>(workspace_dir: P) -> Self
Create a new document creation service for a workspace
Sourcepub async fn create_vision(
&self,
config: DocumentCreationConfig,
) -> Result<CreationResult>
pub async fn create_vision( &self, config: DocumentCreationConfig, ) -> Result<CreationResult>
Create a new vision document
Sourcepub async fn create_strategy(
&self,
config: DocumentCreationConfig,
) -> Result<CreationResult>
pub async fn create_strategy( &self, config: DocumentCreationConfig, ) -> Result<CreationResult>
Create a new strategy document
Sourcepub async fn create_initiative(
&self,
config: DocumentCreationConfig,
strategy_id: &str,
) -> Result<CreationResult>
pub async fn create_initiative( &self, config: DocumentCreationConfig, strategy_id: &str, ) -> Result<CreationResult>
Create a new initiative document
Sourcepub async fn create_task(
&self,
config: DocumentCreationConfig,
strategy_id: &str,
initiative_id: &str,
) -> Result<CreationResult>
pub async fn create_task( &self, config: DocumentCreationConfig, strategy_id: &str, initiative_id: &str, ) -> Result<CreationResult>
Create a new task document
Sourcepub async fn create_adr(
&self,
config: DocumentCreationConfig,
) -> Result<CreationResult>
pub async fn create_adr( &self, config: DocumentCreationConfig, ) -> Result<CreationResult>
Create a new ADR document
Auto Trait Implementations§
impl Freeze for DocumentCreationService
impl RefUnwindSafe for DocumentCreationService
impl Send for DocumentCreationService
impl Sync for DocumentCreationService
impl Unpin for DocumentCreationService
impl UnwindSafe for DocumentCreationService
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> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more