Struct cookiestxt_rs::Cookie
source · pub struct Cookie {
pub domain: String,
pub include_subdomains: bool,
pub path: String,
pub https_only: bool,
pub http_only: bool,
pub expires: u64,
pub name: String,
pub value: String,
}
Expand description
Cookie representation
Fields§
§domain: String
the domain the cookie is valid for
include_subdomains: bool
whether or not the cookie is also valid for subdomains
path: String
a subpath the cookie is valid for
https_only: bool
should it only be valid in https contexts
http_only: bool
should it only be valid in http contexts
expires: u64
unix timestamp for when the cookie expires
name: String
the cookie name
value: String
the value of the cookie
Trait Implementations§
source§impl PartialEq for Cookie
impl PartialEq for Cookie
source§impl TryFrom<&str> for Cookie
impl TryFrom<&str> for Cookie
source§fn try_from(input: &str) -> Result<Self, Self::Error>
fn try_from(input: &str) -> Result<Self, Self::Error>
tries to convert a single line in cookies.txt format to a crate::Cookie.
§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Cookie
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