Struct tozny_auth::question::Question [-] [+] [src]

pub struct Question {
    pub signed_data: String,
    pub signature: String,
}

Type representing a signed message. The data in a Question is signed using HMAC-SHA256.

Fields

signed_data
signature

Methods

impl Question

fn new(key_id: &KeyId, secret: &Secret, method: &Method, params: &Object) -> Result<Question, EncoderError>

Constructs a message to send to the Tozny API. The format value for params will vary depending on the choice of method.

Trait Implementations

Derived Implementations

impl Debug for Question

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Decodable for Question

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Question, Error>

impl Encodable for Question

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>