pub struct VbrConfig {
pub storage: StorageBackend,
pub sessions: SessionConfig,
pub aging: AgingConfig,
pub auth: AuthConfig,
pub api_prefix: String,
}Expand description
VBR engine configuration
Fields§
§storage: StorageBackendStorage backend configuration
sessions: SessionConfigSession configuration
aging: AgingConfigData aging configuration
auth: AuthConfigAuthentication configuration
api_prefix: StringAPI base path prefix
Implementations§
Source§impl VbrConfig
impl VbrConfig
Sourcepub fn with_storage_backend(self, backend: StorageBackend) -> Self
pub fn with_storage_backend(self, backend: StorageBackend) -> Self
Set the storage backend
Sourcepub fn with_sessions(self, config: SessionConfig) -> Self
pub fn with_sessions(self, config: SessionConfig) -> Self
Set session configuration
Sourcepub fn with_aging(self, config: AgingConfig) -> Self
pub fn with_aging(self, config: AgingConfig) -> Self
Set aging configuration
Sourcepub fn with_auth(self, config: AuthConfig) -> Self
pub fn with_auth(self, config: AuthConfig) -> Self
Set authentication configuration
Sourcepub fn with_api_prefix(self, prefix: String) -> Self
pub fn with_api_prefix(self, prefix: String) -> Self
Set the API prefix
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VbrConfig
impl<'de> Deserialize<'de> for VbrConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VbrConfig
impl RefUnwindSafe for VbrConfig
impl Send for VbrConfig
impl Sync for VbrConfig
impl Unpin for VbrConfig
impl UnwindSafe for VbrConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more