pub struct VibeEngineConfig {
pub platform_type: VibePlatformType,
pub store_root_path: PathBuf,
pub is_encrypt: bool,
pub app: VibeAppConfig,
pub log: VibeLogConfig,
pub store: VibeStoreConfig,
pub runtime: VibeRuntimeConfig,
}Expand description
Configuration used to create a VibeEngine.
Configuration used when creating a crate::VibeEngine.
Fields§
§platform_type: VibePlatformTypePlatform identifier used by integrations and logs.
store_root_path: PathBufRoot directory where vibe-ready stores app data.
is_encrypt: boolWhether persistent stores should use encryption when supported.
app: VibeAppConfigApplication identity used for namespacing local data.
log: VibeLogConfigLogging backend and retention configuration.
store: VibeStoreConfigWork-store backend and storage configuration.
runtime: VibeRuntimeConfigRuntime worker and queue configuration.
Implementations§
Source§impl VibeEngineConfig
impl VibeEngineConfig
Sourcepub fn builder() -> VibeEngineConfigBuilder
pub fn builder() -> VibeEngineConfigBuilder
Starts building a VibeEngineConfig with production-ready defaults.
§Returns
A VibeEngineConfigBuilder that can be customized before calling
VibeEngineConfigBuilder::build.
§Examples
use vibe_ready::{VibeEngineConfig, VibePlatformType};
let config = VibeEngineConfig::builder()
.platform(VibePlatformType::MacOS)
.app_name("demo")
.namespace("examples")
.build();
assert_eq!(config.app_name(), "demo");Sourcepub fn store_path(&self) -> &PathBuf
pub fn store_path(&self) -> &PathBuf
Sourcepub fn is_encrypt(&self) -> bool
pub fn is_encrypt(&self) -> bool
Returns whether storage encryption was requested.
§Returns
true when encryption is enabled in the store configuration.
Sourcepub fn platform(&self) -> VibePlatformType
pub fn platform(&self) -> VibePlatformType
Returns the configured platform identifier.
§Returns
The VibePlatformType stored in this configuration.
Sourcepub fn log_config(&self) -> &VibeLogConfig
pub fn log_config(&self) -> &VibeLogConfig
Sourcepub fn store_config(&self) -> &VibeStoreConfig
pub fn store_config(&self) -> &VibeStoreConfig
Sourcepub fn runtime_config(&self) -> &VibeRuntimeConfig
pub fn runtime_config(&self) -> &VibeRuntimeConfig
Sourcepub fn app_store_path(&self) -> PathBuf
pub fn app_store_path(&self) -> PathBuf
Builds the app-specific storage directory path.
§Returns
store_root_path / namespace / app_name as a PathBuf.
§Examples
use std::path::PathBuf;
use vibe_ready::VibeEngineConfig;
let config = VibeEngineConfig::builder()
.store_root_path("/tmp/vibe-ready")
.namespace("dev")
.app_name("app")
.build();
assert_eq!(config.app_store_path(), PathBuf::from("/tmp/vibe-ready/dev/app"));Sourcepub fn validate(&self) -> Result<(), VibeEngineError>
pub fn validate(&self) -> Result<(), VibeEngineError>
Validates identifiers, backend availability, and runtime capacities.
§Returns
Ok(()) when the configuration can be used to create an engine, or
VibeEngineError with configuration context when invalid.
Trait Implementations§
Source§impl Clone for VibeEngineConfig
impl Clone for VibeEngineConfig
Source§fn clone(&self) -> VibeEngineConfig
fn clone(&self) -> VibeEngineConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VibeEngineConfig
impl Debug for VibeEngineConfig
Auto Trait Implementations§
impl Freeze for VibeEngineConfig
impl RefUnwindSafe for VibeEngineConfig
impl Send for VibeEngineConfig
impl Sync for VibeEngineConfig
impl Unpin for VibeEngineConfig
impl UnsafeUnpin for VibeEngineConfig
impl UnwindSafe for VibeEngineConfig
Blanket Implementations§
Source§impl<T> AggregateExpressionMethods for T
impl<T> AggregateExpressionMethods for T
Source§fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn aggregate_distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
DISTINCT modifier for aggregate functions Read moreSource§fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
fn aggregate_all(self) -> Self::Outputwhere
Self: AllDsl,
ALL modifier for aggregate functions Read moreSource§fn aggregate_filter<P>(self, f: P) -> Self::Output
fn aggregate_filter<P>(self, f: P) -> Self::Output
Source§fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
fn aggregate_order<O>(self, o: O) -> Self::Outputwhere
Self: OrderAggregateDsl<O>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
&self to an expression for Diesel’s query builder. Read more