pub struct CliSessionBuilder { /* private fields */ }Implementations§
Source§impl CliSessionBuilder
impl CliSessionBuilder
pub fn new( profile_name: ProfileName, session_token: SessionToken, session_id: SessionId, context_id: ContextId, ) -> Self
pub fn with_tenant_key(self, tenant_key: TenantId) -> Self
pub fn with_session_key(self, key: &SessionKey) -> Self
pub fn with_profile_path(self, profile_path: impl Into<PathBuf>) -> Self
pub fn with_user(self, user_id: UserId, user_email: Email) -> Self
pub const fn with_user_type(self, user_type: UserType) -> Self
pub fn build(self) -> CliSession
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CliSessionBuilder
impl RefUnwindSafe for CliSessionBuilder
impl Send for CliSessionBuilder
impl Sync for CliSessionBuilder
impl Unpin for CliSessionBuilder
impl UnwindSafe for CliSessionBuilder
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