pub struct Cookie { /* private fields */ }Implementations§
Source§impl Cookie
impl Cookie
pub fn new() -> Self
pub fn insert(&mut self, k: &str, v: String)
pub fn from_req(ck: impl AsRef<str>) -> Result<Vec<Cookie>, HlsError>
pub fn from_res(ck: impl AsRef<str>) -> Result<Cookie, HlsError>
pub fn as_res(&self) -> String
pub fn as_req(&self) -> String
pub fn set_name(&mut self, name: String)
pub fn set_value(&mut self, value: String)
pub fn set_age(&mut self, age: i32)
pub fn set_domain(&mut self, domain: String)
pub fn with_domain(self, domain: impl ToString) -> Self
pub fn with_expires(self, expires: impl ToString) -> Self
pub fn set_path(&mut self, path: String)
pub fn with_path(self, path: impl ToString) -> Self
pub fn set_http_only(&mut self, http_only: bool)
pub fn with_http_only(self, http_only: bool) -> Cookie
pub fn set_expires(&mut self, expires: String)
pub fn value(&self) -> &str
pub fn name(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cookie
impl RefUnwindSafe for Cookie
impl Send for Cookie
impl Sync for Cookie
impl Unpin for Cookie
impl UnsafeUnpin for Cookie
impl UnwindSafe for Cookie
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