pub struct DeviceBoundSessionBuilder { /* private fields */ }Expand description
Builder for DeviceBoundSession.
Implementations§
Source§impl DeviceBoundSessionBuilder
impl DeviceBoundSessionBuilder
Sourcepub fn key<VALUE: Into<DeviceBoundSessionKey>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn key<VALUE: Into<DeviceBoundSessionKey>>( &mut self, value: VALUE, ) -> &mut Self
The site and session ID of the session.
Sourcepub fn refresh_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn refresh_url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
See comments on net::device_bound_sessions::Session::refresh_url_.
Sourcepub fn inclusion_rules<VALUE: Into<DeviceBoundSessionInclusionRules>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn inclusion_rules<VALUE: Into<DeviceBoundSessionInclusionRules>>( &mut self, value: VALUE, ) -> &mut Self
See comments on net::device_bound_sessions::Session::inclusion_rules_.
See comments on net::device_bound_sessions::Session::cookie_cravings_.
Sourcepub fn expiry_date<VALUE: Into<TimeSinceEpoch>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn expiry_date<VALUE: Into<TimeSinceEpoch>>( &mut self, value: VALUE, ) -> &mut Self
See comments on net::device_bound_sessions::Session::expiry_date_.
Sourcepub fn cached_challenge<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cached_challenge<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
See comments on net::device_bound_sessions::Session::cached_challenge__.
Sourcepub fn allowed_refresh_initiators<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn allowed_refresh_initiators<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
See comments on net::device_bound_sessions::Session::allowed_refresh_initiators_.
Sourcepub fn build(
&self,
) -> Result<DeviceBoundSession, DeviceBoundSessionBuilderError>
pub fn build( &self, ) -> Result<DeviceBoundSession, DeviceBoundSessionBuilderError>
Trait Implementations§
Source§impl Clone for DeviceBoundSessionBuilder
impl Clone for DeviceBoundSessionBuilder
Source§fn clone(&self) -> DeviceBoundSessionBuilder
fn clone(&self) -> DeviceBoundSessionBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeviceBoundSessionBuilder
impl RefUnwindSafe for DeviceBoundSessionBuilder
impl Send for DeviceBoundSessionBuilder
impl Sync for DeviceBoundSessionBuilder
impl Unpin for DeviceBoundSessionBuilder
impl UnsafeUnpin for DeviceBoundSessionBuilder
impl UnwindSafe for DeviceBoundSessionBuilder
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