[][src]Trait mail_template::PathRebaseable

pub trait PathRebaseable {
    fn rebase_to_include_base_dir(
        &mut self,
        base_dir: impl AsRef<Path>
    ) -> Result<(), UnsupportedPathError>;
fn rebase_to_exclude_base_dir(
        &mut self,
        base_dir: impl AsRef<Path>
    ) -> Result<(), UnsupportedPathError>; }

Required methods

fn rebase_to_include_base_dir(
    &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>

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")).

Loading content...

Implementations on Foreign Types

impl PathRebaseable for PathBuf[src]

impl PathRebaseable for IRI[src]

impl PathRebaseable for Resource[src]

Loading content...

Implementors

impl PathRebaseable for StandardLazyBodyTemplate[src]

Loading content...