dto_mapper 0.3.2

A library to create dynamic DTOs (Data Transfer Object) from a structure
Documentation
1
2
3
4
5
6
7
8
9
/// Removes all whitespace characters from a string
pub fn remove_white_space(s: &str) -> String {
    s.chars().filter(|c| !c.is_whitespace()).collect()
}

/// Checks if a string is blank (empty or only whitespace)
pub fn isblank(s: &str) -> bool {
    s.trim().is_empty()
}