Struct scratchstack_http_framework::RequestId
source · [−]pub struct RequestId { /* private fields */ }
Implementations
sourceimpl RequestId
impl RequestId
pub fn new() -> Self
pub fn from_timestamp_and_random(unix_timestamp: i64, random: u64) -> Self
pub fn from_datetime_and_random<Tz: TimeZone>(
datetime: DateTime<Tz>,
random: u64
) -> Self
pub fn from_timestamp(unix_timestamp: i64) -> Self
pub fn from_datetime<Tz: TimeZone>(datetime: DateTime<Tz>) -> Self
pub fn unix_timestamp(&self) -> u64
pub fn datetime(&self) -> DateTime<Utc>
pub fn uuid(&self) -> Uuid
Trait Implementations
sourceimpl<'de> Deserialize<'de> for RequestId
impl<'de> Deserialize<'de> for RequestId
sourcefn 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
impl Copy for RequestId
impl Eq for RequestId
impl StructuralEq for RequestId
impl StructuralPartialEq for RequestId
Auto Trait Implementations
impl RefUnwindSafe for RequestId
impl Send for RequestId
impl Sync for RequestId
impl Unpin for RequestId
impl UnwindSafe for RequestId
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.