pub struct FileSystemAssetManager { /* private fields */ }Expand description
A filesystem-based implementation of AssetManager that reads assets from a directory
Implementations§
Trait Implementations§
Source§impl AssetManager for FileSystemAssetManager
impl AssetManager for FileSystemAssetManager
Source§fn get_template(&self, template_type: &str) -> Result<String>
fn get_template(&self, template_type: &str) -> Result<String>
Get a template by type (e.g., “feature”, “fix”, “doc”)
Source§fn get_dockerfile(&self, dockerfile_name: &str) -> Result<Vec<u8>>
fn get_dockerfile(&self, dockerfile_name: &str) -> Result<Vec<u8>>
Get a dockerfile as raw bytes
Source§fn get_dockerfile_file(
&self,
dockerfile_name: &str,
file_path: &str,
) -> Result<Vec<u8>>
fn get_dockerfile_file( &self, dockerfile_name: &str, file_path: &str, ) -> Result<Vec<u8>>
Get a specific file from a dockerfile directory
Source§fn list_templates(&self) -> Vec<String>
fn list_templates(&self) -> Vec<String>
List all available templates
Source§fn list_dockerfiles(&self) -> Vec<String>
fn list_dockerfiles(&self) -> Vec<String>
List all available dockerfiles
Auto Trait Implementations§
impl Freeze for FileSystemAssetManager
impl RefUnwindSafe for FileSystemAssetManager
impl Send for FileSystemAssetManager
impl Sync for FileSystemAssetManager
impl Unpin for FileSystemAssetManager
impl UnwindSafe for FileSystemAssetManager
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