pub fn new(
        story_context_store: Arc<Mutex<StoryContextStore>>,
        module: ModuleIdentifier,
    ) -> Result<Self, Error> {
        Ok(ModuleOutputWriterService {
            story_id: module.story_id.ok_or(format_err!("expected story id"))?,
            module_id: utils::encoded_module_path(
                module.module_path.ok_or(format_err!("expected mod path"))?,
            ),
            story_context_store,
        })
    }
/// Create a new module writer instance from an identifier.
Create a new module writer instance from an identifier.
Create a new module writer instance from an identifier .
pub fn new(
        story_context_store: Arc<Mutex<StoryContextStore>>,
        module: ModuleIdentifier,
    ) -> Result<Self, Error> {
        Ok(ModuleOutputWriterService {
            story_id: module.story_id.ok_or(format_err!("expected story id"))?,
            module_id: utils::encoded_module_path(
                module.module_path.ok_or(format_err!("expected mod path"))?,
            ),
            story_context_store,
        })
    }
pub fn new ( story_context_store : Arc < Mutex < StoryContextStore > > , module : ModuleIdentifier , ) -> Result < Self , Error > { Ok ( ModuleOutputWriterService { story_id : module . story_id . ok_or ( format_err ! ( " " ) ) ? , module_id : utils :: encoded_module_path ( module . module_path . ok_or ( format_err ! ( " " ) ) ? , ) , story_context_store , } ) }
Create a new module writer instance from an identifier.
Create a new module writer instance from an identifier .
story_context_store
Arc<Mutex<StoryContextStore>>
module
ModuleIdentifier
story_context_store
Arc<Mutex<StoryContextStore>>
module
ModuleIdentifier