pub fn validate(&self) -> Result<(), Error> {
        // At least one type of account must be supported.
        if !(self.allow_null || self.allow_scrypt || self.allow_pinweaver) {
            Err(anyhow!("Command line options did not allow any types of account"))
        } else if self.allow_pinweaver {
            // TODO(zarvox): Remove this check when pinweaver is supported.
            Err(anyhow!("Pinweaver is not yet supported"))
        } else {
            Ok(())
        }
    }
/// Ensures that a set of options are self consistent.
Ensures that a set of options are self consistent.
Ensures that a set of options are self consistent .
pub fn validate(&self) -> Result<(), Error> {
        // At least one type of account must be supported.
        if !(self.allow_null || self.allow_scrypt || self.allow_pinweaver) {
            Err(anyhow!("Command line options did not allow any types of account"))
        } else if self.allow_pinweaver {
            // TODO(zarvox): Remove this check when pinweaver is supported.
            Err(anyhow!("Pinweaver is not yet supported"))
        } else {
            Ok(())
        }
    }
pub fn validate ( & self ) -> Result < ( ) , Error > { // At least one type of account must be supported. if ! ( self . allow_null || self . allow_scrypt || self . allow_pinweaver ) { Err ( anyhow ! ( " " ) ) } else if self . allow_pinweaver { // TODO(zarvox): Remove this check when pinweaver is supported. Err ( anyhow ! ( " " ) ) } else { Ok ( ( ) ) } }
Ensures that a set of options are self consistent.
Ensures that a set of options are self consistent .
&self
&self