pub trait CookiesInfo {
Show 14 methods
// Required methods
fn name(&self) -> &str;
fn value(&self) -> &str;
fn path(&self) -> &str;
fn domain(&self) -> &str;
fn expiry(&self) -> Option<String>;
fn is_secure(&self) -> bool;
fn is_http_only(&self) -> bool;
fn same_site(&self) -> SameSite;
fn creation(&self) -> Option<DateTime<Utc>>;
fn expires(&self) -> Option<DateTime<Utc>>;
// Provided methods
fn csv_header<D: Display>(sep: D) -> String { ... }
fn to_csv<D: Display>(&self, sep: D) -> String { ... }
fn set_cookie_header(&self) -> String { ... }
fn url(&self) -> String { ... }
}
Required Methods§
fn name(&self) -> &str
fn value(&self) -> &str
fn path(&self) -> &str
fn domain(&self) -> &str
fn expiry(&self) -> Option<String>
fn is_secure(&self) -> bool
fn is_http_only(&self) -> bool
fn same_site(&self) -> SameSite
fn creation(&self) -> Option<DateTime<Utc>>
fn expires(&self) -> Option<DateTime<Utc>>
Provided Methods§
fn csv_header<D: Display>(sep: D) -> String
fn to_csv<D: Display>(&self, sep: D) -> String
fn url(&self) -> String
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.