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 for SessionValue
impl PartialEq for SessionValue
Source§impl PartialOrd for SessionValue
impl PartialOrd for SessionValue
impl Eq for SessionValue
impl StructuralPartialEq for SessionValue
Auto Trait Implementations§
impl Freeze for SessionValue
impl RefUnwindSafe for SessionValue
impl Send for SessionValue
impl Sync for SessionValue
impl Unpin for SessionValue
impl UnwindSafe for SessionValue
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