pub struct SessionBuilder { /* private fields */ }Implementations§
Source§impl SessionBuilder
impl SessionBuilder
pub fn token(self, token: SessionToken) -> Self
pub fn user_id(self, user_id: UserId) -> Self
pub fn user_agent(self, user_agent: Option<String>) -> Self
pub fn ip_address(self, ip_address: Option<String>) -> Self
pub fn created_at(self, created_at: DateTime<Utc>) -> Self
pub fn updated_at(self, updated_at: DateTime<Utc>) -> Self
pub fn expires_at(self, expires_at: DateTime<Utc>) -> Self
pub fn build(self) -> Result<Session, Error>
Trait Implementations§
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 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