pub struct PersonaRegistryConfig {
pub persistent: bool,
pub storage_path: Option<String>,
pub default_traits: HashMap<String, String>,
}Expand description
Persona registry configuration
Fields§
§persistent: boolEnable persistence (save personas to disk)
storage_path: Option<String>Storage path for persistent personas
default_traits: HashMap<String, String>Default traits for new personas
Trait Implementations§
Source§impl Clone for PersonaRegistryConfig
impl Clone for PersonaRegistryConfig
Source§fn clone(&self) -> PersonaRegistryConfig
fn clone(&self) -> PersonaRegistryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PersonaRegistryConfig
impl Debug for PersonaRegistryConfig
Source§impl Default for PersonaRegistryConfig
impl Default for PersonaRegistryConfig
Source§fn default() -> PersonaRegistryConfig
fn default() -> PersonaRegistryConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersonaRegistryConfigwhere
PersonaRegistryConfig: Default,
impl<'de> Deserialize<'de> for PersonaRegistryConfigwhere
PersonaRegistryConfig: 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
Auto Trait Implementations§
impl Freeze for PersonaRegistryConfig
impl RefUnwindSafe for PersonaRegistryConfig
impl Send for PersonaRegistryConfig
impl Sync for PersonaRegistryConfig
impl Unpin for PersonaRegistryConfig
impl UnsafeUnpin for PersonaRegistryConfig
impl UnwindSafe for PersonaRegistryConfig
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