pub struct MFA {
    pub type_: String,
    pub question_rounds: f64,
    pub questions_per_round: f64,
    pub selection_rounds: f64,
    pub selections_per_question: f64,
}

Fields

type_: String

Possible values are device, selections, or questions.

If value is device, the MFA answer is 1234.

If value is selections, the MFA answer is always the first option.

If value is questions, the MFA answer is answer_<i>_<j> for the j-th question in the i-th round, starting from 0. For example, the answer to the first question in the second round is answer_1_0.

question_rounds: f64

Number of rounds of questions. Required if value of type is questions.

questions_per_round: f64

Number of questions per round. Required if value of type is questions. If value of type is selections, default value is 2.

selection_rounds: f64

Number of rounds of selections, used if type is selections. Defaults to 1.

selections_per_question: f64

Number of available answers per question, used if type is selection. Defaults to 2.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more