pub struct SessionContextBuilder { /* private fields */ }Implementations§
Source§impl SessionContextBuilder
impl SessionContextBuilder
pub fn tenant(self, tenant: impl Into<String>) -> Self
pub fn maybe_tenant(self, tenant: Option<String>) -> Self
pub fn correlation_id(self, id: Uuid) -> Self
pub fn causation_id(self, id: Uuid) -> Self
pub fn headers(self, headers: Value) -> Self
pub fn build(self) -> SessionContext
Trait Implementations§
Source§impl Default for SessionContextBuilder
impl Default for SessionContextBuilder
Source§fn default() -> SessionContextBuilder
fn default() -> SessionContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionContextBuilder
impl RefUnwindSafe for SessionContextBuilder
impl Send for SessionContextBuilder
impl Sync for SessionContextBuilder
impl Unpin for SessionContextBuilder
impl UnwindSafe for SessionContextBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more