pub struct Lease {
pub id: Uuid,
pub token_id_hash: String,
pub engine_mount: String,
pub internal_data: Value,
pub issued_at: DateTime<Utc>,
pub expires_at: DateTime<Utc>,
}Fields§
§id: Uuid§token_id_hash: String§engine_mount: StringThe EngineMount::prefix (see router.rs) that owns this lease and
must be asked to revoke() it.
internal_data: Value§issued_at: DateTime<Utc>§expires_at: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lease
impl<'de> Deserialize<'de> for Lease
Source§fn 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
Auto Trait Implementations§
impl Freeze for Lease
impl RefUnwindSafe for Lease
impl Send for Lease
impl Sync for Lease
impl Unpin for Lease
impl UnsafeUnpin for Lease
impl UnwindSafe for Lease
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more