pub struct NamespacesConfig {
pub default_namespace: String,
pub allowed_namespaces: Vec<String>,
pub max_namespaces: usize,
}Expand description
Multi-tenancy namespace configuration.
Namespaces isolate memory data between different tenants, projects, users, agents, or threads.
Fields§
§default_namespace: StringDefault namespace when no X-Ucotron-Namespace header is provided.
allowed_namespaces: Vec<String>If non-empty, only these namespaces are allowed. Empty means any namespace is allowed.
max_namespaces: usizeMaximum number of namespaces allowed (0 = unlimited).
Trait Implementations§
Source§impl Clone for NamespacesConfig
impl Clone for NamespacesConfig
Source§fn clone(&self) -> NamespacesConfig
fn clone(&self) -> NamespacesConfig
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 NamespacesConfig
impl Debug for NamespacesConfig
Source§impl Default for NamespacesConfig
impl Default for NamespacesConfig
Source§impl<'de> Deserialize<'de> for NamespacesConfig
impl<'de> Deserialize<'de> for NamespacesConfig
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 NamespacesConfig
impl RefUnwindSafe for NamespacesConfig
impl Send for NamespacesConfig
impl Sync for NamespacesConfig
impl Unpin for NamespacesConfig
impl UnsafeUnpin for NamespacesConfig
impl UnwindSafe for NamespacesConfig
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