pub enum SessionIdStrategy {
None,
Entity,
Repository,
Custom(fn(&EventEnvelope) -> Option<String>),
}Expand description
Strategy for generating session IDs for ordered processing.
Variants§
None
No session IDs generated
Entity
Entity-based session IDs (e.g., “pr-owner/repo-123”)
Repository
Repository-based session IDs (e.g., “repo-owner/name”)
Custom(fn(&EventEnvelope) -> Option<String>)
Custom session ID generation function
Trait Implementations§
Source§impl Clone for SessionIdStrategy
impl Clone for SessionIdStrategy
Source§fn clone(&self) -> SessionIdStrategy
fn clone(&self) -> SessionIdStrategy
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 moreAuto Trait Implementations§
impl Freeze for SessionIdStrategy
impl RefUnwindSafe for SessionIdStrategy
impl Send for SessionIdStrategy
impl Sync for SessionIdStrategy
impl Unpin for SessionIdStrategy
impl UnsafeUnpin for SessionIdStrategy
impl UnwindSafe for SessionIdStrategy
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