pub struct SessionBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> SessionBuilder<S>
impl<S: State> SessionBuilder<S>
Sourcepub fn build(self) -> Sessionwhere
S: IsComplete,
pub fn build(self) -> Sessionwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: String) -> SessionBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> SessionBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Sourcepub fn created_at(self, value: String) -> SessionBuilder<SetCreatedAt<S>>where
S::CreatedAt: IsUnset,
pub fn created_at(self, value: String) -> SessionBuilder<SetCreatedAt<S>>where
S::CreatedAt: IsUnset,
Required.
Sourcepub fn project_id(self, value: String) -> SessionBuilder<SetProjectId<S>>where
S::ProjectId: IsUnset,
pub fn project_id(self, value: String) -> SessionBuilder<SetProjectId<S>>where
S::ProjectId: IsUnset,
Required.
Sourcepub fn environment(
self,
value: Option<String>,
) -> SessionBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
pub fn environment(
self,
value: Option<String>,
) -> SessionBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
Sourcepub fn maybe_environment(
self,
value: Option<Option<String>>,
) -> SessionBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
pub fn maybe_environment(
self,
value: Option<Option<String>>,
) -> SessionBuilder<SetEnvironment<S>>where
S::Environment: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for SessionBuilder<S>
impl<S> RefUnwindSafe for SessionBuilder<S>
impl<S> Send for SessionBuilder<S>
impl<S> Sync for SessionBuilder<S>
impl<S> Unpin for SessionBuilder<S>
impl<S> UnwindSafe for SessionBuilder<S>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more