pub struct IdGeneratorConfig {
pub namespace: Option<String>,
pub include_semantic_role: bool,
}Expand description
Configuration for ID generation
Fields§
§namespace: Option<String>Namespace for multi-tenant scenarios
include_semantic_role: boolWhether to include semantic role in hash
Implementations§
Source§impl IdGeneratorConfig
impl IdGeneratorConfig
pub fn new() -> Self
pub fn with_namespace(self, namespace: impl Into<String>) -> Self
pub fn with_semantic_role(self, include: bool) -> Self
Trait Implementations§
Source§impl Clone for IdGeneratorConfig
impl Clone for IdGeneratorConfig
Source§fn clone(&self) -> IdGeneratorConfig
fn clone(&self) -> IdGeneratorConfig
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 IdGeneratorConfig
impl Debug for IdGeneratorConfig
Source§impl Default for IdGeneratorConfig
impl Default for IdGeneratorConfig
Source§fn default() -> IdGeneratorConfig
fn default() -> IdGeneratorConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdGeneratorConfig
impl RefUnwindSafe for IdGeneratorConfig
impl Send for IdGeneratorConfig
impl Sync for IdGeneratorConfig
impl Unpin for IdGeneratorConfig
impl UnwindSafe for IdGeneratorConfig
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