Function ccash_rs::methods::admin::verify_account[][src]

pub async fn verify_account(
    session: &CCashSession,
    user: &CCashUser
) -> Result<bool, CCashError>
Expand description

Returns a boolean whether or not the user is an admin account.

Errors

Will return a CCashError if the request fails or if the CCash instance returns an error code other than 401, as long as the interpret_endpoint_errors_as_false feature is disabled.