pub struct Cookie {
pub host: String,
pub path: String,
pub http_only: bool,
pub secure: bool,
pub expires: u64,
pub name: String,
pub value: String,
}
Fields§
§host: String
§path: String
§http_only: bool
§secure: bool
§expires: u64
§name: String
§value: String
Implementations§
Source§impl Cookie
impl Cookie
Sourcepub fn new(name: &str, value: &str) -> Self
pub fn new(name: &str, value: &str) -> Self
Instantiate new cookie, used chained methods to specify other cookie variables.
Sourcepub fn from_line(line: &str) -> Option<Self>
pub fn from_line(line: &str) -> Option<Self>
Instantiate cookie from line of Netscape formatted cookies.txt file
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 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