pub struct EmbeddedAssetManager;Expand description
Asset manager that serves embedded assets from the binary
Implementations§
Trait Implementations§
Source§impl AssetManager for EmbeddedAssetManager
impl AssetManager for EmbeddedAssetManager
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 EmbeddedAssetManager
impl RefUnwindSafe for EmbeddedAssetManager
impl Send for EmbeddedAssetManager
impl Sync for EmbeddedAssetManager
impl Unpin for EmbeddedAssetManager
impl UnwindSafe for EmbeddedAssetManager
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