nmstate 2.1.1

Library for networking management in a declarative manner
Documentation
1
2
3
4
5
6
7
pub(crate) fn is_option_string_empty(data: &Option<String>) -> bool {
    if let Some(s) = data {
        s.is_empty()
    } else {
        true
    }
}