1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Simple traits for extending RustF framework functionality
//!
//! These traits define the contracts for user-defined extensions
//! that can be auto-discovered from the definitions folder.
use crateSessionConfig;
use crateResult;
use crateSessionStorage;
use Arc;
/// Trait for registering custom view helpers
///
/// Implement this trait in `definitions/helpers.rs` to add
/// custom template helper functions.
/// Trait for registering custom validators
///
/// Implement this trait in `definitions/validators.rs` to add
/// custom validation logic.
/// Factory function signature for custom session storage
///
/// Implement a function with this signature in `definitions/session_storage.rs`
/// to provide custom session storage backend.
pub type SessionStorageFactory = fn ;
/// Factory function signature for custom cache storage
///
/// Implement a function with this signature in `definitions/cache_storage.rs`
/// to provide custom cache backend.
pub type CacheStorageFactory<T> = fn ;