pub struct FilesystemProvider { /* private fields */ }Expand description
Loads email templates from the filesystem with locale-based fallback.
Templates are stored as .md files with YAML frontmatter. Localized
variants live in subdirectories named after the locale (e.g. de/welcome.md).
When a localized file is not found, the provider falls back to the root
template (welcome.md).
Path traversal attempts (names or locales containing .., /, or \)
are rejected and return an error.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilesystemProvider
impl RefUnwindSafe for FilesystemProvider
impl Send for FilesystemProvider
impl Sync for FilesystemProvider
impl Unpin for FilesystemProvider
impl UnsafeUnpin for FilesystemProvider
impl UnwindSafe for FilesystemProvider
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