pub struct SsrkitConfig {
pub nanoid_length: Option<usize>,
pub nanoid_alphabet: Option<Vec<char>>,
pub global_state_session_duration: Option<Duration>,
pub global_state_cache_size: Option<NonZeroUsize>,
pub template_cache_size: Option<NonZeroUsize>,
}Fields§
§nanoid_length: Option<usize>§nanoid_alphabet: Option<Vec<char>>§global_state_session_duration: Option<Duration>§global_state_cache_size: Option<NonZeroUsize>§template_cache_size: Option<NonZeroUsize>Implementations§
Source§impl SsrkitConfig
impl SsrkitConfig
pub fn new() -> Self
pub fn change() -> SsrkitConfigChanger
pub fn get_nanoid_length(&self) -> usize
pub fn get_nanoid_alphabet(&self) -> Vec<char>
pub fn get_global_state_cache_size(&self) -> NonZeroUsize
pub fn get_global_state_session_duration(&self) -> Duration
pub fn get_template_cache_size(&self) -> NonZeroUsize
Trait Implementations§
Source§impl Clone for SsrkitConfig
impl Clone for SsrkitConfig
Auto Trait Implementations§
impl Freeze for SsrkitConfig
impl RefUnwindSafe for SsrkitConfig
impl Send for SsrkitConfig
impl Sync for SsrkitConfig
impl Unpin for SsrkitConfig
impl UnwindSafe for SsrkitConfig
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