pub struct RealmConfig {
pub selection: RealmSelection,
pub instance_id: Option<String>,
pub backend_hint: Option<String>,
pub state_root: Option<PathBuf>,
}Expand description
Realm/runtime settings.
Fields§
§selection: RealmSelection§instance_id: Option<String>§backend_hint: Option<String>String hint (e.g. “sqlite”, “jsonl”), interpreted by surface/store layers.
state_root: Option<PathBuf>Root directory containing all realm directories.
Implementations§
Source§impl RealmConfig
impl RealmConfig
Sourcepub fn selection_from_inputs(
realm: Option<String>,
isolated: bool,
default: RealmSelection,
) -> Result<RealmSelection, RuntimeBootstrapError>
pub fn selection_from_inputs( realm: Option<String>, isolated: bool, default: RealmSelection, ) -> Result<RealmSelection, RuntimeBootstrapError>
Build selection from common CLI inputs, with a provided default mode.
Sourcepub fn resolve_locator(&self) -> Result<RealmLocator, RuntimeBootstrapError>
pub fn resolve_locator(&self) -> Result<RealmLocator, RuntimeBootstrapError>
Resolve a concrete (state_root, realm_id) locator.
Trait Implementations§
Source§impl Clone for RealmConfig
impl Clone for RealmConfig
Source§fn clone(&self) -> RealmConfig
fn clone(&self) -> RealmConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RealmConfig
impl Debug for RealmConfig
Source§impl Default for RealmConfig
impl Default for RealmConfig
Source§impl<'de> Deserialize<'de> for RealmConfigwhere
RealmConfig: Default,
impl<'de> Deserialize<'de> for RealmConfigwhere
RealmConfig: Default,
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
Source§impl PartialEq for RealmConfig
impl PartialEq for RealmConfig
Source§impl Serialize for RealmConfig
impl Serialize for RealmConfig
impl Eq for RealmConfig
impl StructuralPartialEq for RealmConfig
Auto Trait Implementations§
impl Freeze for RealmConfig
impl RefUnwindSafe for RealmConfig
impl Send for RealmConfig
impl Sync for RealmConfig
impl Unpin for RealmConfig
impl UnsafeUnpin for RealmConfig
impl UnwindSafe for RealmConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.