pub struct CorrelationIdUtil;Implementations§
Source§impl CorrelationIdUtil
impl CorrelationIdUtil
Sourcepub fn create_correlation_id() -> String
pub fn create_correlation_id() -> String
Creates a new correlation ID using UUID v4 in standard format.
Uses hyphenated format (36 chars) to maintain compatibility with Java’s UUID.toString(). Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
§Returns
A 36-character UUID string (e.g., “550e8400-e29b-41d4-a716-446655440000”)
Sourcepub fn create_correlation_id_simple() -> String
pub fn create_correlation_id_simple() -> String
Creates a new correlation ID using UUID v4 in simple format (without hyphens).
This format is more compact and has ~11% less memory overhead compared to standard format. Format: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (32 hex characters)
§Returns
A 32-character UUID string (e.g., “550e8400e29b41d4a716446655440000”)
Auto Trait Implementations§
impl Freeze for CorrelationIdUtil
impl RefUnwindSafe for CorrelationIdUtil
impl Send for CorrelationIdUtil
impl Sync for CorrelationIdUtil
impl Unpin for CorrelationIdUtil
impl UnsafeUnpin for CorrelationIdUtil
impl UnwindSafe for CorrelationIdUtil
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