pub struct CookieRule {
pub host_regex: String,
pub name_regex: String,
}Expand description
A CookieRule is used to secure cookies which conform to some name and host constraints
Fields§
§host_regex: String§name_regex: StringImplementations§
Source§impl CookieRule
impl CookieRule
Sourcepub fn new(host_regex: String, name_regex: String) -> CookieRule
pub fn new(host_regex: String, name_regex: String) -> CookieRule
Returns a cookierule with the host and scope regex specified
§Arguments
host_regex- A string that will be compiled to regex indicating the host of the cookiename_regex- A string that will be compiled to regex indicating the name of the cookie
Trait Implementations§
Source§impl Debug for CookieRule
impl Debug for CookieRule
Source§impl ToJavaScript for CookieRule
impl ToJavaScript for CookieRule
Source§fn to_javascript(&self) -> JsValue
fn to_javascript(&self) -> JsValue
Convert a ruleset to a JS value
Auto Trait Implementations§
impl Freeze for CookieRule
impl RefUnwindSafe for CookieRule
impl Send for CookieRule
impl Sync for CookieRule
impl Unpin for CookieRule
impl UnwindSafe for CookieRule
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