Struct tozny_auth::protocol::Timestamp
[-] [+]
[src]
pub struct Timestamp(_);
Wraps a DateTime<UTC>
value; implements serialization into the format
expected by the Tozny API.
Methods
impl Timestamp
fn new(t: DateTime<UTC>) -> Timestamp
fn unwrap(self) -> DateTime<UTC>
fn as_slice(&self) -> &DateTime<UTC>
Trait Implementations
impl Decodable for Timestamp
impl Encodable for Timestamp
Given a time, produces a string representing that time as the number of seconds since January 1, 1970.