Add static token lifetime
This commit is contained in:
parent
38d81ed931
commit
397578840d
|
@ -29,3 +29,6 @@ pub trait Lifetime {
|
||||||
|
|
||||||
pub use self::bearer::Bearer;
|
pub use self::bearer::Bearer;
|
||||||
mod bearer;
|
mod bearer;
|
||||||
|
|
||||||
|
pub use self::statik::Static;
|
||||||
|
mod statik;
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
use super::Lifetime;
|
||||||
|
|
||||||
|
/// A static, non-expiring token.
|
||||||
|
pub struct Static;
|
||||||
|
|
||||||
|
impl Lifetime for Static {
|
||||||
|
fn expired(&self) -> bool { false }
|
||||||
|
}
|
Loading…
Reference in New Issue