#[repr(transparent)]pub struct Cookie { /* private fields */ }
Implementations§
source§impl Cookie
impl Cookie
sourcepub fn as_ptr(&self) -> *mut SoupCookie
pub fn as_ptr(&self) -> *mut SoupCookie
Return the inner pointer to the underlying C value.
source§impl Cookie
impl Cookie
pub fn new(
name: &str,
value: &str,
domain: &str,
path: &str,
max_age: i32
) -> Cookie
pub fn applies_to_uri(&mut self, uri: &Uri) -> bool
pub fn domain_matches(&mut self, host: &str) -> bool
pub fn domain(&mut self) -> Option<GString>
pub fn expires(&mut self) -> Option<DateTime>
pub fn is_http_only(&mut self) -> bool
pub fn name(&mut self) -> Option<GString>
pub fn path(&mut self) -> Option<GString>
pub fn same_site_policy(&mut self) -> SameSitePolicy
pub fn is_secure(&mut self) -> bool
pub fn value(&mut self) -> Option<GString>
pub fn set_domain(&mut self, domain: &str)
pub fn set_expires(&mut self, expires: &DateTime)
pub fn set_http_only(&mut self, http_only: bool)
pub fn set_max_age(&mut self, max_age: i32)
pub fn set_name(&mut self, name: &str)
pub fn set_path(&mut self, path: &str)
pub fn set_same_site_policy(&mut self, policy: SameSitePolicy)
pub fn set_secure(&mut self, secure: bool)
pub fn set_value(&mut self, value: &str)
pub fn parse(header: &str, origin: Option<&Uri>) -> Option<Cookie>
Trait Implementations§
source§impl Ord for Cookie
impl Ord for Cookie
source§impl PartialEq<Cookie> for Cookie
impl PartialEq<Cookie> for Cookie
source§impl PartialOrd<Cookie> for Cookie
impl PartialOrd<Cookie> for Cookie
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for Cookie
impl StaticType for Cookie
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Cookie
Auto Trait Implementations§
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> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.