From aed6c248092a2c596c4ec8192631478d2ba66cc7 Mon Sep 17 00:00:00 2001 From: "Charles E. Lehner" Date: Wed, 16 Mar 2022 12:43:51 -0400 Subject: [PATCH] Add Header::t function --- src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index ea993cf..6370855 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,6 +55,12 @@ pub struct Header { t: String, } +impl Header { + pub fn t<'a>(&'a self) -> &'a str { + &self.t.as_str() + } +} + #[async_trait] pub trait SignatureScheme { type Signature;