pub trait Signer {
// Required methods
fn sign(&self, value: String) -> String;
fn unsign(&self, signed_value: String) -> Result<String, SignatureError>;
fn sign_object<T>(&self, obj: T, compress: bool) -> String
where T: Serialize;
fn unsign_object<T>(
&self,
signed_object: String,
) -> Result<T, SignatureError>
where T: DeserializeOwned;
}Required Methods§
fn sign(&self, value: String) -> String
fn unsign(&self, signed_value: String) -> Result<String, SignatureError>
fn sign_object<T>(&self, obj: T, compress: bool) -> Stringwhere
T: Serialize,
fn unsign_object<T>(&self, signed_object: String) -> Result<T, SignatureError>where
T: DeserializeOwned,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.