pub struct CookieBuilder { /* private fields */ }Implementations§
Source§impl CookieBuilder
impl CookieBuilder
pub fn domain<T>(&mut self, s: T) -> &mut Self
pub fn subdomains(&mut self, v: bool) -> &mut Self
pub fn path<T>(&mut self, s: T) -> &mut Self
pub fn secure(&mut self, v: bool) -> &mut Self
pub fn expires_at(&mut self, v: i64) -> &mut Self
pub fn name<T>(&mut self, s: T) -> &mut Self
pub fn value<T>(&mut self, s: T) -> &mut Self
Sourcepub fn build(self) -> QuartzResult<Cookie, CookieError>
pub fn build(self) -> QuartzResult<Cookie, CookieError>
Generate Cookie from this CookieBuilder components.
§Errors
This function will return an error if builder has any invalid cookie component, such as
missing domain, name, or value.
Trait Implementations§
Source§impl Default for CookieBuilder
impl Default for CookieBuilder
Source§fn default() -> CookieBuilder
fn default() -> CookieBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CookieBuilder
impl RefUnwindSafe for CookieBuilder
impl Send for CookieBuilder
impl Sync for CookieBuilder
impl Unpin for CookieBuilder
impl UnwindSafe for CookieBuilder
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