pub enum ConsentState {
    Unconfigured,
    Unknown,
    Denied,
    NotStarted,
    Expired,
    Granted,
}

Variants

Unconfigured

A campaign with that ID doesn’t exist or already expired.

Unknown

There’s no record of consent. User was probably never asked.

Denied

User denied consent. Don’t ask again!

NotStarted

Consent was given, but consent period has not yet started.

Expired

Consent was given, but consent period is over. You might ask again for a new period.

Granted

Consent was given and is currently valid.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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.