sftpman 2.0.5

A CLI application and library for managing and mounting sshfs (SFTP) filesystems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use validator::ValidationErrors;

pub fn errors_to_string_list(errors: ValidationErrors) -> Vec<String> {
    let mut list: Vec<String> = Vec::new();

    for (_field_name, field_errors) in errors.field_errors() {
        for field_error in field_errors {
            list.push(field_error.to_string());
        }
    }

    list
}