pub trait SignatureMethod: Debug + DynClone {
// Required methods
fn name(&self) -> &'static str;
fn sign(
&self,
base_string: &str,
auth: &AuthenticationLevel,
) -> Result<Parameter, Box<dyn Error>>;
// Provided method
fn as_parameter(&self) -> Parameter { ... }
}
Expand description
The trait for signature methods
Required Methods§
Provided Methods§
Sourcefn as_parameter(&self) -> Parameter
fn as_parameter(&self) -> Parameter
Returns the oauth_signature_method
parameter