Rust

options

Module

The options document of a password hash: the settings stored with each hash so it can be rebuilt and verified later.

Contents

use utopia_auth::Options;
Rust
pub struct Options(Array)

The options of a Hash: an ordered map of names to values.

Appwrite persists it as a user's hashOptions and rebuilds the hash from it (crate::proofs::Password::create_hash), so it is a contract: keys keep their insertion order, a numeric string such as "7" is the integer key 7, and setting an existing key keeps its position.

Also implements From.
use utopia_auth::OptionValue;
Rust
pub trait OptionValue

A Rust value that can be stored as an option: strings, byte strings, integers, booleans and Value.

Implemented byValuestrStringVeci64i32bool