pub fn new(sub: String, company: String, exp: DateTime<Utc>) -> Self {
        // normalize the timestamps by stripping of microseconds
        let exp = exp.date().and_hms_milli(exp.hour(), exp.minute(), exp.second(), 0);
        Self { sub, company, exp }
    }
/// If a token should always be equal to its representation after serializing and deserializing
/// again, this function must be used for construction. `DateTime` contains a microsecond field
/// but JWT timestamps are defined as UNIX timestamps (seconds). This function normalizes the
/// timestamps.
If a token should always be equal to its representation after serializing and deserializing
again, this function must be used for construction. `DateTime` contains a microsecond field
but JWT timestamps are defined as UNIX timestamps (seconds). This function normalizes the
timestamps.
If a token should always be equal to its representation after serializing and deserializing again this function must be used for construction . ` DateTime ` contains a microsecond field but JWT timestamps are defined as UNIX timestamps ( seconds ) . This function normalizes the timestamps .
pub fn new(sub: String, company: String, exp: DateTime<Utc>) -> Self {
        // normalize the timestamps by stripping of microseconds
        let exp = exp.date().and_hms_milli(exp.hour(), exp.minute(), exp.second(), 0);
        Self { sub, company, exp }
    }
pub fn new ( sub : String , company : String , exp : DateTime < Utc > ) -> Self { // normalize the timestamps by stripping of microseconds let exp = exp . date ( ) . and_hms_milli ( exp . hour ( ) , exp . minute ( ) , exp . second ( ) , 0 ) ; Self { sub , company , exp } }
If a token should always be equal to its representation after serializing and deserializing
again, this function must be used for construction.
If a token should always be equal to its representation after serializing and deserializing again this function must be used for construction .
sub
String
company
String
exp
DateTime<Utc>
sub
String
company
String
exp
DateTime<Utc>