pub enum SessionValue {
Null,
Binary(Vec<u8>),
Bool(bool),
Integer(i64),
IpAddr(IpAddr),
String(String),
Timestamp(DateTime<Utc>),
}
Expand description
Associated data about a session key.
Variants§
Null
Null value
Binary(Vec<u8>)
Binary value
Bool(bool)
Boolean value
Integer(i64)
Integer value
IpAddr(IpAddr)
IP address value
String(String)
String value
Timestamp(DateTime<Utc>)
Timestamp value
Implementations§
source§impl SessionValue
impl SessionValue
Trait Implementations§
source§impl Clone for SessionValue
impl Clone for SessionValue
source§fn clone(&self) -> SessionValue
fn clone(&self) -> SessionValue
Returns a copy 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 SessionValue
impl Debug for SessionValue
source§impl Display for SessionValue
impl Display for SessionValue
source§impl From<&str> for SessionValue
impl From<&str> for SessionValue
source§impl From<DateTime<FixedOffset>> for SessionValue
impl From<DateTime<FixedOffset>> for SessionValue
source§fn from(value: DateTime<FixedOffset>) -> Self
fn from(value: DateTime<FixedOffset>) -> Self
Converts to this type from the input type.
source§impl From<IpAddr> for SessionValue
impl From<IpAddr> for SessionValue
source§impl From<Ipv4Addr> for SessionValue
impl From<Ipv4Addr> for SessionValue
source§impl From<Ipv6Addr> for SessionValue
impl From<Ipv6Addr> for SessionValue
source§impl From<String> for SessionValue
impl From<String> for SessionValue
source§impl From<bool> for SessionValue
impl From<bool> for SessionValue
source§impl From<i64> for SessionValue
impl From<i64> for SessionValue
source§impl Hash for SessionValue
impl Hash for SessionValue
source§impl Ord for SessionValue
impl Ord for SessionValue
source§fn cmp(&self, other: &SessionValue) -> Ordering
fn cmp(&self, other: &SessionValue) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SessionValue> for SessionValue
impl PartialEq<SessionValue> for SessionValue
source§fn eq(&self, other: &SessionValue) -> bool
fn eq(&self, other: &SessionValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SessionValue> for SessionValue
impl PartialOrd<SessionValue> for SessionValue
source§fn partial_cmp(&self, other: &SessionValue) -> Option<Ordering>
fn partial_cmp(&self, other: &SessionValue) -> Option<Ordering>
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 more