[−][src]Trait mail_template::PathRebaseable
Required methods
fn rebase_to_include_base_dir(
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
Prefixes path in the type with base_dir
.
Error
Some implementors might not support all paths.
For example a implementor requiring rust string
compatible paths might return a
Err(UnsupportedPathError::new("utf-8"))
.
fn rebase_to_exclude_base_dir(
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
Removes the base_dir
prefix.
Error
Some implementors might not support all paths.
For example a implementor requiring rust string
compatible paths might return a
Err(UnsupportedPathError::new("utf-8"))
.
Implementations on Foreign Types
impl PathRebaseable for PathBuf
[src]
fn rebase_to_include_base_dir(
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
[src]
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
fn rebase_to_exclude_base_dir(
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
[src]
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
impl PathRebaseable for IRI
[src]
fn rebase_to_include_base_dir(
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
[src]
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
fn rebase_to_exclude_base_dir(
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
[src]
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
impl PathRebaseable for Resource
[src]
fn rebase_to_include_base_dir(
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
[src]
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
fn rebase_to_exclude_base_dir(
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
[src]
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
Implementors
impl PathRebaseable for StandardLazyBodyTemplate
[src]
fn rebase_to_include_base_dir(
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
[src]
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
fn rebase_to_exclude_base_dir(
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>
[src]
&mut self,
base_dir: impl AsRef<Path>
) -> Result<(), UnsupportedPathError>