ibr: Document this module.
This commit is contained in:
parent
250a3fcc98
commit
02db34d94d
1 changed files with 10 additions and 2 deletions
12
src/ibr.rs
12
src/ibr.rs
|
|
@ -4,8 +4,6 @@
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
#![allow(missing_docs)]
|
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use try_from::TryFrom;
|
use try_from::TryFrom;
|
||||||
|
|
||||||
|
|
@ -18,12 +16,22 @@ use data_forms::DataForm;
|
||||||
|
|
||||||
use ns;
|
use ns;
|
||||||
|
|
||||||
|
/// Query for registering against a service.
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Query {
|
pub struct Query {
|
||||||
|
/// Deprecated fixed list of possible fields to fill before the user can
|
||||||
|
/// register.
|
||||||
pub fields: HashMap<String, String>,
|
pub fields: HashMap<String, String>,
|
||||||
|
|
||||||
|
/// Whether this account is already registered.
|
||||||
pub registered: bool,
|
pub registered: bool,
|
||||||
|
|
||||||
|
/// Whether to remove this account.
|
||||||
pub remove: bool,
|
pub remove: bool,
|
||||||
|
|
||||||
|
/// A data form the user must fill before being allowed to register.
|
||||||
pub form: Option<DataForm>,
|
pub form: Option<DataForm>,
|
||||||
|
|
||||||
// Not yet implemented.
|
// Not yet implemented.
|
||||||
//pub oob: Option<Oob>,
|
//pub oob: Option<Oob>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue