pub struct HttpCookie {
pub domain: Option<String>,
pub expiration_time: Option<i64>,
pub expiration_time_dt: Option<String>,
pub http_only: Option<bool>,
pub is_http_only: Option<bool>,
pub is_secure: Option<bool>,
pub name: String,
pub path: Option<String>,
pub samesite: Option<String>,
pub secure: Option<bool>,
pub value: String,
}
Expand description
HttpCookie
JSON schema
{
"type": "object",
"required": [
"name",
"value"
],
"properties": {
"domain": {
"type": "string"
},
"expiration_time": {
"type": "integer"
},
"expiration_time_dt": {
"type": "string"
},
"http_only": {
"type": "boolean"
},
"is_http_only": {
"type": "boolean"
},
"is_secure": {
"type": "boolean"
},
"name": {
"type": "string"
},
"path": {
"type": "string"
},
"samesite": {
"type": "string"
},
"secure": {
"type": "boolean"
},
"value": {
"type": "string"
}
}
}
Fields§
§domain: Option<String>
§expiration_time: Option<i64>
§expiration_time_dt: Option<String>
§http_only: Option<bool>
§is_http_only: Option<bool>
§is_secure: Option<bool>
§name: String
§path: Option<String>
§samesite: Option<String>
§secure: Option<bool>
§value: String
Implementations§
Source§impl HttpCookie
impl HttpCookie
pub fn builder() -> HttpCookie
Trait Implementations§
Source§impl Clone for HttpCookie
impl Clone for HttpCookie
Source§fn clone(&self) -> HttpCookie
fn clone(&self) -> HttpCookie
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HttpCookie
impl Debug for HttpCookie
Source§impl<'de> Deserialize<'de> for HttpCookie
impl<'de> Deserialize<'de> for HttpCookie
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&HttpCookie> for HttpCookie
impl From<&HttpCookie> for HttpCookie
Source§fn from(value: &HttpCookie) -> Self
fn from(value: &HttpCookie) -> Self
Converts to this type from the input type.
Source§impl From<HttpCookie> for HttpCookie
impl From<HttpCookie> for HttpCookie
Source§fn from(value: HttpCookie) -> Self
fn from(value: HttpCookie) -> Self
Converts to this type from the input type.
Source§impl Serialize for HttpCookie
impl Serialize for HttpCookie
Source§impl TryFrom<HttpCookie> for HttpCookie
impl TryFrom<HttpCookie> for HttpCookie
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: HttpCookie) -> Result<Self, ConversionError>
fn try_from(value: HttpCookie) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for HttpCookie
impl RefUnwindSafe for HttpCookie
impl Send for HttpCookie
impl Sync for HttpCookie
impl Unpin for HttpCookie
impl UnwindSafe for HttpCookie
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