pub struct SessionBuilder { /* private fields */ }Expand description
A builder for constructing a Session.
Implementations§
Source§impl SessionBuilder
impl SessionBuilder
Sourcepub fn create_time(self, create_time: impl Into<String>) -> Self
pub fn create_time(self, create_time: impl Into<String>) -> Self
Sets the creation timestamp for the session.
Sourcepub fn update_time(self, update_time: impl Into<String>) -> Self
pub fn update_time(self, update_time: impl Into<String>) -> Self
Sets the last-update timestamp for the session.
Sourcepub fn source_context(self, source_context: SourceContext) -> Self
pub fn source_context(self, source_context: SourceContext) -> Self
Sets the source context for the session.
Sourcepub fn build(self) -> Result<Session, SessionBuildError>
pub fn build(self) -> Result<Session, SessionBuildError>
Builds the Session from the provided configuration.
§Errors
Returns a SessionBuildError if the session cannot be built from the provided configuration.
Trait Implementations§
Source§impl Debug for SessionBuilder
impl Debug for SessionBuilder
Source§impl Default for SessionBuilder
impl Default for SessionBuilder
Source§fn default() -> SessionBuilder
fn default() -> SessionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionBuilder
impl RefUnwindSafe for SessionBuilder
impl Send for SessionBuilder
impl Sync for SessionBuilder
impl Unpin for SessionBuilder
impl UnsafeUnpin for SessionBuilder
impl UnwindSafe for SessionBuilder
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