Signer

Trait Signer 

Source
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§

Source

fn sign(&self, value: String) -> String

Source

fn unsign(&self, signed_value: String) -> Result<String, SignatureError>

Source

fn sign_object<T>(&self, obj: T, compress: bool) -> String
where T: Serialize,

Source

fn unsign_object<T>(&self, signed_object: String) -> Result<T, SignatureError>

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.

Implementors§