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
sourceimpl SessionValue
impl SessionValue
Trait Implementations
sourceimpl Clone for SessionValue
impl Clone for SessionValue
sourcefn clone(&self) -> SessionValue
fn clone(&self) -> SessionValue
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SessionValue
impl Debug for SessionValue
sourceimpl Display for SessionValue
impl Display for SessionValue
sourceimpl From<&str> for SessionValue
impl From<&str> for SessionValue
sourceimpl From<DateTime<FixedOffset>> for SessionValue
impl From<DateTime<FixedOffset>> for SessionValue
sourcefn from(value: DateTime<FixedOffset>) -> Self
fn from(value: DateTime<FixedOffset>) -> Self
Converts to this type from the input type.
sourceimpl From<DateTime<Utc>> for SessionValue
impl From<DateTime<Utc>> for SessionValue
sourceimpl From<IpAddr> for SessionValue
impl From<IpAddr> for SessionValue
sourceimpl From<Ipv4Addr> for SessionValue
impl From<Ipv4Addr> for SessionValue
sourceimpl From<Ipv6Addr> for SessionValue
impl From<Ipv6Addr> for SessionValue
sourceimpl From<String> for SessionValue
impl From<String> for SessionValue
sourceimpl From<bool> for SessionValue
impl From<bool> for SessionValue
sourceimpl From<i64> for SessionValue
impl From<i64> for SessionValue
sourceimpl Hash for SessionValue
impl Hash for SessionValue
sourceimpl Ord for SessionValue
impl Ord for SessionValue
sourcefn cmp(&self, other: &SessionValue) -> Ordering
fn cmp(&self, other: &SessionValue) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SessionValue> for SessionValue
impl PartialEq<SessionValue> for SessionValue
sourcefn eq(&self, other: &SessionValue) -> bool
fn eq(&self, other: &SessionValue) -> bool
sourceimpl PartialOrd<SessionValue> for SessionValue
impl PartialOrd<SessionValue> for SessionValue
sourcefn partial_cmp(&self, other: &SessionValue) -> Option<Ordering>
fn partial_cmp(&self, other: &SessionValue) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moreimpl Eq for SessionValue
impl StructuralEq for SessionValue
impl StructuralPartialEq for SessionValue
Auto Trait Implementations
impl RefUnwindSafe for SessionValue
impl Send for SessionValue
impl Sync for SessionValue
impl Unpin for SessionValue
impl UnwindSafe for SessionValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more