pub fn resolve_search_string(search: Option<String>) -> String {
    search
        // Escape the search string and surround it in `%`s to match on any sequence.
        .map(|s| format!("%{}%", escape_search_string(s.as_str())))
        // Default to match any user on no search string.
        .unwrap_or("%".into())
}
/// Escape a search string and format with hasura regular expression characters
/// or produce the default (all-accepting) search string.
Escape a search string and format with hasura regular expression characters
or produce the default (all-accepting) search string.
Escape a search string and format with hasura regular expression characters or produce the default ( all - accepting ) search string .
pub fn resolve_search_string(search: Option<String>) -> String {
    search
        // Escape the search string and surround it in `%`s to match on any sequence.
        .map(|s| format!("%{}%", escape_search_string(s.as_str())))
        // Default to match any user on no search string.
        .unwrap_or("%".into())
}
pub fn resolve_search_string ( search : Option < String > ) -> String { search // Escape the search string and surround it in `%`s to match on any sequence. . map ( | s | format ! ( " " escape_search_string ( s as_str ( ) ) ) ) // Default to match any user on no search string. . unwrap_or ( " " . into ( ) ) }
Escape a search string and format with hasura regular expression characters
or produce the default (all-accepting) search string.
Escape a search string and format with hasura regular expression characters or produce the default ( all - accepting ) search string .
search
Option<String>
search
Option<String>