pub struct DeviceBoundSessionCookieCravingBuilder { /* private fields */ }Expand description
Builder for DeviceBoundSessionCookieCraving.
Implementations§
Source§impl DeviceBoundSessionCookieCravingBuilder
impl DeviceBoundSessionCookieCravingBuilder
Sourcepub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the craving.
Sourcepub fn domain<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn domain<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The domain of the craving.
Sourcepub fn path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn path<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The path of the craving.
Sourcepub fn secure<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn secure<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
The Secure attribute of the craving attributes.
Sourcepub fn http_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn http_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
The HttpOnly attribute of the craving attributes.
Sourcepub fn same_site<VALUE: Into<CookieSameSite>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn same_site<VALUE: Into<CookieSameSite>>( &mut self, value: VALUE, ) -> &mut Self
The SameSite attribute of the craving attributes.
Sourcepub fn build(
&self,
) -> Result<DeviceBoundSessionCookieCraving, DeviceBoundSessionCookieCravingBuilderError>
pub fn build( &self, ) -> Result<DeviceBoundSessionCookieCraving, DeviceBoundSessionCookieCravingBuilderError>
Trait Implementations§
Source§impl Clone for DeviceBoundSessionCookieCravingBuilder
impl Clone for DeviceBoundSessionCookieCravingBuilder
Source§fn clone(&self) -> DeviceBoundSessionCookieCravingBuilder
fn clone(&self) -> DeviceBoundSessionCookieCravingBuilder
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 DeviceBoundSessionCookieCravingBuilder
impl RefUnwindSafe for DeviceBoundSessionCookieCravingBuilder
impl Send for DeviceBoundSessionCookieCravingBuilder
impl Sync for DeviceBoundSessionCookieCravingBuilder
impl Unpin for DeviceBoundSessionCookieCravingBuilder
impl UnsafeUnpin for DeviceBoundSessionCookieCravingBuilder
impl UnwindSafe for DeviceBoundSessionCookieCravingBuilder
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